From 3564b00fc0807f0578e40891061793ef727d2dd5 Mon Sep 17 00:00:00 2001 From: crobibero Date: Mon, 13 May 2024 12:47:34 -0400 Subject: [PATCH] Backport pull request #11569 from jellyfin/release-10.9.z Default to processor count concurrent scan instead of 2 * processor count Original-merge: f77a5d0c5c11741e16e7c2411e8f9df04d5f0b26 Merged-by: crobibero Backported-by: Joshua M. Boniface --- MediaBrowser.Controller/Entities/Folder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MediaBrowser.Controller/Entities/Folder.cs b/MediaBrowser.Controller/Entities/Folder.cs index 236e47f959..0f2ec1f8f9 100644 --- a/MediaBrowser.Controller/Entities/Folder.cs +++ b/MediaBrowser.Controller/Entities/Folder.cs @@ -594,7 +594,7 @@ namespace MediaBrowser.Controller.Entities } var fanoutConcurrency = ConfigurationManager.Configuration.LibraryScanFanoutConcurrency; - var parallelism = fanoutConcurrency > 0 ? fanoutConcurrency : 2 * Environment.ProcessorCount; + var parallelism = fanoutConcurrency > 0 ? fanoutConcurrency : Environment.ProcessorCount; var actionBlock = new ActionBlock( async i =>