From 5728f94e000a0c0f5aee19d4adbc298048292038 Mon Sep 17 00:00:00 2001 From: Ske Date: Mon, 12 Aug 2019 06:24:37 +0200 Subject: [PATCH] Fix stats command --- PluralKit.Bot/Commands/MiscCommands.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/PluralKit.Bot/Commands/MiscCommands.cs b/PluralKit.Bot/Commands/MiscCommands.cs index 3d7d4c14..1f1bbd89 100644 --- a/PluralKit.Bot/Commands/MiscCommands.cs +++ b/PluralKit.Bot/Commands/MiscCommands.cs @@ -43,7 +43,6 @@ namespace PluralKit.Bot.Commands { { var messagesReceived = Metrics.Snapshot.GetForContext("Bot").Meters.First(m => m.MultidimensionalName == BotMetrics.MessagesReceived.Name).Value; var messagesProxied = Metrics.Snapshot.GetForContext("Bot").Meters.First(m => m.MultidimensionalName == BotMetrics.MessagesProxied.Name).Value; - var proxySuccessRate = messagesProxied.Items.First(i => i.Item == "success"); var commandsRun = Metrics.Snapshot.GetForContext("Bot").Meters.First(m => m.MultidimensionalName == BotMetrics.CommandsRun.Name).Value; @@ -51,7 +50,6 @@ namespace PluralKit.Bot.Commands { .AddField("Messages processed", $"{messagesReceived.OneMinuteRate:F1}/s ({messagesReceived.FifteenMinuteRate:F1}/s over 15m)") .AddField("Messages proxied", $"{messagesProxied.OneMinuteRate:F1}/s ({messagesProxied.FifteenMinuteRate:F1}/s over 15m)") .AddField("Commands executed", $"{commandsRun.OneMinuteRate:F1}/s ({commandsRun.FifteenMinuteRate:F1}/s over 15m)") - .AddField("Proxy success rate", $"{proxySuccessRate.Percent/100:P1}") .Build()); }