1
0
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:
dominic 2025-02-04 10:41:07 +00:00 committed by GitHub
commit ab74c6c885
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}