mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-24 07:30:57 +01: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:
parent
a6ad36b57a
commit
d7cdaeea7d
1 changed files with 1 additions and 1 deletions
|
|
@ -2344,7 +2344,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
// Automatic
|
||||
if (threads <= 0 || threads >= Environment.ProcessorCount)
|
||||
{
|
||||
return 0;
|
||||
return Environment.ProcessorCount;
|
||||
}
|
||||
|
||||
return threads;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue