From a023128cd4f75b1883cb8398a5d54157f29afc20 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Wed, 8 Mar 2023 13:16:42 +0000 Subject: [PATCH] Add N2 formatting for ratio A>B branch result --- Hammer/Services/InfractionStatisticsService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Hammer/Services/InfractionStatisticsService.cs b/Hammer/Services/InfractionStatisticsService.cs index e8f1234..641cf2c 100644 --- a/Hammer/Services/InfractionStatisticsService.cs +++ b/Hammer/Services/InfractionStatisticsService.cs @@ -75,10 +75,10 @@ public async Task CreateStatisticsEmbedAsync(DiscordGuild guild) float maxMute = Math.Max(muteRatio.A, muteRatio.B); string banRatioFormatted = $"{permBanCount:N0} perm / {tempBanCount} temp\n" + - (banRatio.A > banRatio.B ? $"({maxBan / minBan} : 1)" : $"(1 : {maxBan / minBan:N2})"); + (banRatio.A > banRatio.B ? $"({maxBan / minBan:N2} : 1)" : $"(1 : {maxBan / minBan:N2})"); string muteRatioFormatted = $"{permMuteCount:N0} perm / {tempMuteCount} temp\n" + - (muteRatio.A > muteRatio.B ? $"({maxMute / minMute} : 1)" : $"(1 : {maxMute / minMute:N2})"); + (muteRatio.A > muteRatio.B ? $"({maxMute / minMute:N2} : 1)" : $"(1 : {maxMute / minMute:N2})"); TimeSpan remainingBanTime = GetRemainingBanTime(guild); TimeSpan remainingMuteTime = GetRemainingMuteTime(guild);