From 18a452216c2020791853bc43f1ee4bd26dede00e Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Wed, 8 Nov 2017 11:08:58 +0100 Subject: [PATCH] bugfix cpu speed arm --- CHANGELOG.md | 1 + lib/cpu.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e66785b..fa4780e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -99,6 +99,7 @@ Other changes | Version | Date | Comment | | -------------- | -------------- | -------- | +| 3.33.2 | 2017-11-08 | bugfix cpu speed arm | | 3.33.1 | 2017-11-07 | improved bios and main board information | | 3.33.0 | 2017-11-07 | added bios and main board information | | 3.32.4 | 2017-11-02 | AMD cpu base frequencies table also for windows | diff --git a/lib/cpu.js b/lib/cpu.js index 88252f3..66569ca 100644 --- a/lib/cpu.js +++ b/lib/cpu.js @@ -204,7 +204,7 @@ function getCpu() { } if (result.speed === '0.00') { let current = getCpuCurrentSpeedSync(); - if (current !== '0.00') result.speed = current; + if (current !== '0.00') result.speed = current.avg; } _cpu_speed = result.speed; result.speedmin = Math.round(parseFloat(util.getValue(lines, 'cpu min mhz').replace(/,/g, '.')) / 10.0) / 100;