mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-03 22:40:09 +00:00
Use Math.Min
Co-authored-by: Bond-009 <bond.009@outlook.com>
This commit is contained in:
parent
2321866302
commit
447dd3aed7
1 changed files with 1 additions and 1 deletions
|
|
@ -6308,7 +6308,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
return 0;
|
||||
}
|
||||
|
||||
return threads >= Environment.ProcessorCount ? Environment.ProcessorCount : threads;
|
||||
return Math.Min(threads, Environment.ProcessorCount);
|
||||
}
|
||||
|
||||
#nullable disable
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue