code cleanup

This commit is contained in:
Sebastian Hildebrandt 2020-10-06 16:33:10 +02:00
parent 31f9742f46
commit c5357b793b

View File

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