diff --git a/hecl/lib/ClientProcess.cpp b/hecl/lib/ClientProcess.cpp index 89cf13058..7b4c3a52a 100644 --- a/hecl/lib/ClientProcess.cpp +++ b/hecl/lib/ClientProcess.cpp @@ -46,6 +46,10 @@ void SetCpuCountOverride(int argc, const SystemChar** argv) { } static int GetCPUCount() { + if (CpuCountOverride > 0) { + return CpuCountOverride; + } + int ret; #if _WIN32 SYSTEM_INFO sysinfo; @@ -55,9 +59,6 @@ static int GetCPUCount() { ret = sysconf(_SC_NPROCESSORS_ONLN); #endif - if (CpuCountOverride) - return std::min(CpuCountOverride, ret); - return ret; }