mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-13 12:33:01 +03:00
Use all system cores when threads are set to auto or bigger than the amount of system's cores
This commit is contained in:
@@ -2344,7 +2344,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||
// Automatic
|
||||
if (threads <= 0 || threads >= Environment.ProcessorCount)
|
||||
{
|
||||
return 0;
|
||||
return Environment.ProcessorCount;
|
||||
}
|
||||
|
||||
return threads;
|
||||
|
||||
Reference in New Issue
Block a user