Skip to content

Commit

Permalink
Show stats percentages to 1dp, fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
ph1ll committed Nov 22, 2017
1 parent c1528a7 commit 83f80bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NtdsAudit/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/// </summary>
internal static class Program
{
private static int GetPercentage(int actual, int maximum) => (int)Math.Round(((double)100 / maximum) * actual);
private static double GetPercentage(int actual, int maximum) => Math.Round(((double)100 / maximum) * actual, 1);

[Conditional("DEBUG")]
private static void LaunchDebugger()
Expand Down

0 comments on commit 83f80bf

Please sign in to comment.