From fd866465b49945baf65e5926534c5d4347af6a0d Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 29 Sep 2019 12:08:31 -0700 Subject: [PATCH] Fix test program output --- BurnOutSharp/ProtectionFind.cs | 2 +- Test/Program.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BurnOutSharp/ProtectionFind.cs b/BurnOutSharp/ProtectionFind.cs index b9bb9375..64b9310f 100644 --- a/BurnOutSharp/ProtectionFind.cs +++ b/BurnOutSharp/ProtectionFind.cs @@ -97,7 +97,7 @@ namespace BurnOutSharp } // Checkpoint - progress?.Report(new FileProtection(file, i / files.Count(), contentProtection)); + progress?.Report(new FileProtection(file, i / (float)files.Count(), contentProtection)); } } diff --git a/Test/Program.cs b/Test/Program.cs index 96f44b40..ea0f9f71 100644 --- a/Test/Program.cs +++ b/Test/Program.cs @@ -22,7 +22,7 @@ namespace Test private static void Changed(object source, FileProtection value) { - Console.WriteLine($"{value.Percentage * 100}: {value.Filename} - {value.Protection}"); + Console.WriteLine($"{value.Percentage * 100:N2}%: {value.Filename} - {value.Protection}"); } } }