diff --git a/lib/cpu.js b/lib/cpu.js index baa87ea..497d7a9 100644 --- a/lib/cpu.js +++ b/lib/cpu.js @@ -484,7 +484,7 @@ function getCpu() { if (result.cache.l3) { result.cache.l3 = parseInt(result.cache.l3) * (result.cache.l3.indexOf('K') !== -1 ? 1024 : 1); } const threadsPerCore = util.getValue(lines, 'thread(s) per core') || '1'; - const coresPerSocketInt = parseInt(util.getValue(lines, 'cores(s) per socket') || '0', 10); + // const coresPerSocketInt = parseInt(util.getValue(lines, 'cores(s) per socket') || '1', 10); const processors = util.getValue(lines, 'socket(s)') || '1'; let threadsPerCoreInt = parseInt(threadsPerCore, 10); let processorsInt = parseInt(processors, 10);