Skip to content

Commit a3a5d60

Browse files
committed
Make GetProcessorCount() count processors across all processor groups
1 parent e0bc2e5 commit a3a5d60

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/util.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -481,9 +481,7 @@ string StripAnsiEscapeCodes(const string& in) {
481481

482482
int GetProcessorCount() {
483483
#ifdef _WIN32
484-
SYSTEM_INFO info;
485-
GetNativeSystemInfo(&info);
486-
return info.dwNumberOfProcessors;
484+
return GetActiveProcessorCount(ALL_PROCESSOR_GROUPS);
487485
#else
488486
#ifdef CPU_COUNT
489487
// The number of exposed processors might not represent the actual number of

0 commit comments

Comments
 (0)