diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-08-23 08:59:13 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-23 08:59:13 -0500 |
| commit | b82b84d955d403aab4e9da1ea1fc68e08c54dbbb (patch) | |
| tree | 5030e3731e4677bbc25c263847d5e14cb0cd5b19 /src/slskd/Application.cs | |
| parent | 43b5411cbd8d85a338acc0033cfade3c509bf1f4 (diff) | |
| parent | 408ae0311e8a9756808281f705f6a7f23f07fb96 (diff) | |
| download | slskd-b82b84d955d403aab4e9da1ea1fc68e08c54dbbb.tar.gz | |
Merge pull request #612 from slskd/share-ex
Make share scanning log more verbosely in debug mode, and a little easier on memory
Diffstat (limited to 'src/slskd/Application.cs')
| -rw-r--r-- | src/slskd/Application.cs | 4 |
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); } } } |
