aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2022-09-24 16:22:26 -0500
committerJP Dillingham <jpdillingham@gmail.com>2022-09-24 16:22:26 -0500
commitc42c892408faf7481d111e866a654ea37866d94b (patch)
treea21b4d82a1d606867d581d215fa78cca1834a1b2 /src
parentc6a06b2d45faeab923865ca4bc2232ff5f7c8326 (diff)
downloadslskd-c42c892408faf7481d111e866a654ea37866d94b.tar.gz
report progress every 1% instead of 5
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Application.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs
index 62138d48..4990186e 100644
--- a/src/slskd/Application.cs
+++ b/src/slskd/Application.cs
@@ -1035,7 +1035,7 @@ namespace slskd
var lastProgress = Math.Round(previous.ScanProgress * 100);
var currentProgress = Math.Round(current.ScanProgress * 100);
- if (lastProgress != currentProgress && Math.Round(currentProgress, 0) % 5d == 0)
+ if (lastProgress != currentProgress && Math.Round(currentProgress, 0) % 1d == 0)
{
State.SetValue(s => s with { Shares = current });
Log.Information("Scanned {Percent}% of shared directories. Found {Files} files so far.", currentProgress, current.Files);