diff --git a/CHANGELOG.md b/CHANGELOG.md index 576b65a..f1d651b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page. | Version | Date | Comment | | -------------- | -------------- | -------- | +| 4.30.11 | 2020-12-02 | `cpu()` bug fix speed parsing | | 4.30.10 | 2020-12-01 | `cpu()` handled speed parsing error (Apple Silicon) | | 4.30.9 | 2020-12-01 | `cpu()` corrected processor names (Raspberry Pi) | | 4.30.8 | 2020-11-30 | `fsSize()` catch error (mac OS) | diff --git a/docs/history.html b/docs/history.html index dc74a72..0a80223 100644 --- a/docs/history.html +++ b/docs/history.html @@ -83,6 +83,11 @@ + + 4.30.11 + 2020-12-02 + cpu() bugfix speed parsing + 4.30.10 2020-12-01 diff --git a/docs/index.html b/docs/index.html index 97a771c..830a013 100644 --- a/docs/index.html +++ b/docs/index.html @@ -169,7 +169,7 @@
systeminformation
-
Current Version: 4.30.10
+
Current Version: 4.30.11
diff --git a/lib/cpu.js b/lib/cpu.js index 3de30ab..3a438e4 100644 --- a/lib/cpu.js +++ b/lib/cpu.js @@ -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);