From 3279e498bc9da1231e26dd636465a8c2983baa73 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 17 Sep 2022 17:26:07 -0500 Subject: minor optimization --- src/slskd/Shares/SharedFileCache.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/slskd/Shares/SharedFileCache.cs') 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. -- cgit v1.2.3