cpu() virtualization fix (mac OS)
This commit is contained in:
@@ -645,6 +645,7 @@ function getCpu() {
|
||||
result.family = util.getValue(lines, 'machdep.cpu.family') || util.getValue(lines, 'hw.cpufamily');
|
||||
result.model = util.getValue(lines, 'machdep.cpu.model');
|
||||
result.stepping = util.getValue(lines, 'machdep.cpu.stepping') || util.getValue(lines, 'hw.cpusubfamily');
|
||||
result.virtualization = true;
|
||||
const countProcessors = util.getValue(lines, 'hw.packages');
|
||||
const countCores = util.getValue(lines, 'hw.physicalcpu_max');
|
||||
const countThreads = util.getValue(lines, 'hw.ncpu');
|
||||
|
||||
Reference in New Issue
Block a user