Преглед на файлове

Use all system cores when threads are set to auto or bigger than the amount of system's cores

Fernando Fernández преди 4 години
родител
ревизия
d7cdaeea7d
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs

+ 1 - 1
MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs

@@ -2344,7 +2344,7 @@ namespace MediaBrowser.Controller.MediaEncoding
             // Automatic
             if (threads <= 0 || threads >= Environment.ProcessorCount)
             {
-                return 0;
+                return Environment.ProcessorCount;
             }
 
             return threads;