Derp
This commit is contained in:
parent
de540a2a8a
commit
0a00be7a72
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ export const RestPerformanceCmd = botControlCmd({
|
|||
|
||||
async run({ pluginData, message: msg, args }) {
|
||||
const count = Math.max(1, Math.min(25, args.count || 5));
|
||||
const stats = getTopRestCallStats(5);
|
||||
const stats = getTopRestCallStats(count);
|
||||
const formatted = stats.map((callStats) => {
|
||||
const cleanSource = callStats.source.replace(leadingPathRegex, "");
|
||||
return `**${callStats.count} calls**\n${callStats.method.toUpperCase()} ${callStats.path}\n${cleanSource}`;
|
||||
|
|
Loading…
Add table
Reference in a new issue