mirror of
https://github.com/google/benchmark.git
synced 2025-03-31 14:40:29 +08:00
Merge branch 'main' into fixwindows
This commit is contained in:
commit
ab74c6c885
@ -515,8 +515,7 @@ int GetNumCPUsImpl() {
|
||||
int GetNumCPUs() {
|
||||
int num_cpus = GetNumCPUsImpl();
|
||||
if (num_cpus < 1) {
|
||||
std::cerr << "Unable to extract number of CPUs. If your platform uses "
|
||||
"/proc/cpuinfo, custom support may need to be added.\n";
|
||||
std::cerr << "Unable to extract number of CPUs.\n";
|
||||
/* There is at least one CPU which we run on. */
|
||||
num_cpus = 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user