mirror of https://github.com/AxioDL/metaforce.git
Don't limit CpuCountOverride to nproc
This commit is contained in:
parent
6a8714c1f3
commit
776e9394ac
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue