We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95bfaff commit af9bdf3Copy full SHA for af9bdf3
1 file changed
Modules/posixmodule.c
@@ -15990,7 +15990,9 @@ os_cpu_count_impl(PyObject *module)
15990
# ifdef MS_WINDOWS_DESKTOP
15991
ncpu = GetActiveProcessorCount(ALL_PROCESSOR_GROUPS);
15992
# else
15993
- ncpu = 0;
+ SYSTEM_INFO sysinfo;
15994
+ GetSystemInfo(&sysinfo);
15995
+ ncpu = sysinfo.dwNumberOfProcessors;
15996
# endif
15997
15998
#elif defined(__hpux)
0 commit comments