Skip to content

Commit

Permalink
Default to processor count concurrent scan instead of 2 * processor c…
Browse files Browse the repository at this point in the history
…ount (jellyfin#11569)
  • Loading branch information
crobibero committed May 12, 2024
1 parent 6689d83 commit f77a5d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MediaBrowser.Controller/Entities/Folder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ void UpdateProgress()
}

var fanoutConcurrency = ConfigurationManager.Configuration.LibraryScanFanoutConcurrency;
var parallelism = fanoutConcurrency > 0 ? fanoutConcurrency : 2 * Environment.ProcessorCount;
var parallelism = fanoutConcurrency > 0 ? fanoutConcurrency : Environment.ProcessorCount;

var actionBlock = new ActionBlock<int>(
async i =>
Expand Down

0 comments on commit f77a5d0

Please sign in to comment.