diff options
Diffstat (limited to 'src/emerge.cpp')
-rw-r--r-- | src/emerge.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emerge.cpp b/src/emerge.cpp index 5c1569f04..e36d36448 100644 --- a/src/emerge.cpp +++ b/src/emerge.cpp @@ -173,7 +173,7 @@ EmergeManager::EmergeManager(Server *server, MetricsBackend *mb) g_settings->getS16NoEx("num_emerge_threads", nthreads); // If automatic, leave a proc for the main thread and one for // some other misc thread - if (nthreads == 0) + if (nthreads <= 0) nthreads = Thread::getNumberOfProcessors() - 2; if (nthreads < 1) nthreads = 1; |