diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2022-09-24 16:22:26 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2022-09-24 16:22:26 -0500 |
| commit | c42c892408faf7481d111e866a654ea37866d94b (patch) | |
| tree | a21b4d82a1d606867d581d215fa78cca1834a1b2 /src | |
| parent | c6a06b2d45faeab923865ca4bc2232ff5f7c8326 (diff) | |
| download | slskd-c42c892408faf7481d111e866a654ea37866d94b.tar.gz | |
report progress every 1% instead of 5
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Application.cs | 2 |
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); |
