From 0a00be7a72c2534601e85ee8a541a099bc1369b5 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sat, 11 Sep 2021 21:48:12 +0300 Subject: [PATCH] Derp --- backend/src/plugins/BotControl/commands/RestPerformanceCmd.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/BotControl/commands/RestPerformanceCmd.ts b/backend/src/plugins/BotControl/commands/RestPerformanceCmd.ts index 5ec1fba0..a1d8576d 100644 --- a/backend/src/plugins/BotControl/commands/RestPerformanceCmd.ts +++ b/backend/src/plugins/BotControl/commands/RestPerformanceCmd.ts @@ -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}`;