Skip to content

Commit

Permalink
Make GetProcessorCount() count processors across all processor groups
Browse files Browse the repository at this point in the history
  • Loading branch information
jessemckenna committed Jul 12, 2019
1 parent e0bc2e5 commit a3a5d60
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/util.cc
Expand Up @@ -481,9 +481,7 @@ string StripAnsiEscapeCodes(const string& in) {

int GetProcessorCount() {
#ifdef _WIN32
SYSTEM_INFO info;
GetNativeSystemInfo(&info);
return info.dwNumberOfProcessors;
return GetActiveProcessorCount(ALL_PROCESSOR_GROUPS);
#else
#ifdef CPU_COUNT
// The number of exposed processors might not represent the actual number of
Expand Down

0 comments on commit a3a5d60

Please sign in to comment.