From 40bdb9b2d9c381b2c9c9c8ca5926e44899dd5164 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Wed, 28 Oct 2020 13:21:42 -0700 Subject: [PATCH] Use 'i+1' during progress --- BurnOutSharp/ProtectionFind.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BurnOutSharp/ProtectionFind.cs b/BurnOutSharp/ProtectionFind.cs index 8b50a2ac..bf55f0a7 100644 --- a/BurnOutSharp/ProtectionFind.cs +++ b/BurnOutSharp/ProtectionFind.cs @@ -147,7 +147,7 @@ namespace BurnOutSharp // Checkpoint protections.TryGetValue(file, out string fullProtection); - FileProgress?.Report(new FileProtection(reportableFileName, i / (float)files.Count(), fullProtection ?? string.Empty)); + FileProgress?.Report(new FileProtection(reportableFileName, (i + 1) / (float)files.Count(), fullProtection ?? string.Empty)); } }