cpu() bug fix speed parsing
This commit is contained in:
+1
-1
@@ -415,7 +415,7 @@ function getCpu() {
|
||||
const modelline = util.getValue(lines, 'machdep.cpu.brand_string');
|
||||
const modellineParts = modelline.split('@');
|
||||
result.brand = modellineParts[0].trim();
|
||||
result.speed = modellineParts[1] ? modellineParts.trim() : '0';
|
||||
result.speed = modellineParts[1] ? modellineParts[1].trim() : '0';
|
||||
result.speed = parseFloat(result.speed.replace(/GHz+/g, '')).toFixed(2);
|
||||
_cpu_speed = result.speed;
|
||||
result = cpuBrandManufacturer(result);
|
||||
|
||||
Reference in New Issue
Block a user