aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Shares/SharedFileCache.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-09-17 17:26:07 -0500
committerJP Dillingham <jp@dillingham.me>2022-09-17 17:26:07 -0500
commit3279e498bc9da1231e26dd636465a8c2983baa73 (patch)
treede25c946c6bcea9194a638b0dab9a8e3a615eb6c /src/slskd/Shares/SharedFileCache.cs
parentf5ce131f50e74e9c7e5c124de52b48dadbda0b54 (diff)
downloadslskd-3279e498bc9da1231e26dd636465a8c2983baa73.tar.gz
minor optimization
Diffstat (limited to 'src/slskd/Shares/SharedFileCache.cs')
-rw-r--r--src/slskd/Shares/SharedFileCache.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Shares/SharedFileCache.cs b/src/slskd/Shares/SharedFileCache.cs
index fbd47a5d..1c2b61aa 100644
--- a/src/slskd/Shares/SharedFileCache.cs
+++ b/src/slskd/Shares/SharedFileCache.cs
@@ -274,7 +274,7 @@ namespace slskd.Shares
RecurseSubdirectories = false,
});
- addedFiles = newFiles.Count();
+ addedFiles = newFiles.Length;
// merge the new dictionary with the rest this will overwrite any duplicate keys, but keys are the fully
// qualified name the only time this *should* cause problems is if one of the shares is a subdirectory of another.