aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-08-23 08:09:03 -0500
committerJP Dillingham <jp@dillingham.me>2022-08-23 08:09:03 -0500
commitb45b8cc62be35b63af5544b746b4ce556d258e78 (patch)
tree5030e3731e4677bbc25c263847d5e14cb0cd5b19 /src
parenta81fde8c29be4b99d66c24006d191232b72d9e7c (diff)
downloadslskd-b45b8cc62be35b63af5544b746b4ce556d258e78.tar.gz
tweak share scanning progress logging
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Application.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs
index 5a56e110..ed3aec30 100644
--- a/src/slskd/Application.cs
+++ b/src/slskd/Application.cs
@@ -965,10 +965,10 @@ namespace slskd
var lastProgress = Math.Round(previous.ScanProgress * 100);
var currentProgress = Math.Round(current.ScanProgress * 100);
- if (lastProgress != currentProgress && Math.Round(currentProgress, 0) % 10d == 0)
+ if (lastProgress != currentProgress && Math.Round(currentProgress, 0) % 5d == 0)
{
State.SetValue(s => s with { Shares = current });
- Log.Information("Scanned {Percent}% () of shared directories. Found {Files} files so far.", currentProgress, current.Files);
+ Log.Information("Scanned {Percent}% of shared directories. Found {Files} files so far.", currentProgress, current.Files);
}
}
}