Skip to content

Commit

Permalink
Update sysinfo.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
hdeller authored Jan 9, 2025
1 parent 7e00e36 commit 836b35b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sysinfo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ int GetNumCPUsImpl() {
return static_cast<int>(sysinfo.dwNumberOfProcessors);
#elif defined(__linux__) || defined(BENCHMARK_OS_SOLARIS)
// Returns -1 in case of a failure.
int num_cpu = static_cast<int> (sysconf(_SC_NPROCESSORS_ONLN));
int num_cpu = static_cast<int>(sysconf(_SC_NPROCESSORS_ONLN));
if (num_cpu < 0) {
PrintErrorAndDie("sysconf(_SC_NPROCESSORS_ONLN) failed with error: ",
strerror(errno));
Expand Down

0 comments on commit 836b35b

Please sign in to comment.