Merge branch 'upstream-KWSys' into update-kwsys

# By KWSys Upstream
* upstream-KWSys:
  KWSys 2023-05-25 (c9f0da47)
This commit is contained in:
Brad King
2023-05-25 09:43:54 -04:00

View File

@@ -3453,6 +3453,10 @@ bool SystemInformationImplementation::RetrieveInformationFromCpuInfoFile()
fileSize++;
}
fclose(fd);
if (fileSize < 2) {
std::cout << "No data in /proc/cpuinfo" << std::endl;
return false;
}
buffer.resize(fileSize - 2);
// Number of logical CPUs (combination of multiple processors, multi-core
// and SMT)