code cleanup
This commit is contained in:
parent
31f9742f46
commit
c5357b793b
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user