Skip to content

Commit

Permalink
Add N2 formatting for ratio A>B branch result
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbooth committed Mar 8, 2023
1 parent f2a0131 commit a023128
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Hammer/Services/InfractionStatisticsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ public async Task<DiscordEmbed> 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);
Expand Down

0 comments on commit a023128

Please sign in to comment.