diff --git a/CHANGELOG.md b/CHANGELOG.md index fc531ae..e42ba20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -72,6 +72,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | -------------- | -------------- | -------- | +| 5.2.4 | 2020-02-11 | `currentLoad()` fixed issue | | 5.2.3 | 2020-02-11 | `diskLayout()` added USB drives (mac OS) | | 5.2.2 | 2020-02-11 | code cleanup, updated docs | | 5.2.1 | 2020-02-10 | `system()` fixed issue virtual detect (linux) | diff --git a/docs/history.html b/docs/history.html index 31ea1e0..cd5a271 100644 --- a/docs/history.html +++ b/docs/history.html @@ -56,6 +56,11 @@ + + 5.2.4 + 2020-02-11 + currentLoad() fix issue + 5.2.3 2020-02-11 diff --git a/docs/index.html b/docs/index.html index 83bc91f..e3b52ab 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.2.3
+
New Version: 5.2.4
diff --git a/lib/cpu.js b/lib/cpu.js index c554e43..1d83971 100644 --- a/lib/cpu.js +++ b/lib/cpu.js @@ -1406,11 +1406,11 @@ function getLoad() { _cpus[i].loadIrq = (_cpus[i].irq - tmpIrq); cores[i] = {}; cores[i].load = _cpus[i].load / _cpus[i].currentTick * 100; - cores[i].loadUser = _cpus[i].load_user / _cpus[i].currentTick * 100; - cores[i].loadSystem = _cpus[i].load_system / _cpus[i].currentTick * 100; - cores[i].loadNice = _cpus[i].load_nice / _cpus[i].currentTick * 100; - cores[i].loadIdle = _cpus[i].load_idle / _cpus[i].currentTick * 100; - cores[i].loadIrq = _cpus[i].load_irq / _cpus[i].currentTick * 100; + cores[i].loadUser = _cpus[i].loadUser / _cpus[i].currentTick * 100; + cores[i].loadSystem = _cpus[i].loadSystem / _cpus[i].currentTick * 100; + cores[i].loadNice = _cpus[i].loadNice / _cpus[i].currentTick * 100; + cores[i].loadIdle = _cpus[i].loadIdle / _cpus[i].currentTick * 100; + cores[i].loadIrq = _cpus[i].loadIrq / _cpus[i].currentTick * 100; cores[i].rawLoad = _cpus[i].load; cores[i].rawLoadUser = _cpus[i].loadUser; cores[i].rawLoadSystem = _cpus[i].loadSystem; @@ -1564,3 +1564,4 @@ function fullLoad(callback) { exports.fullLoad = fullLoad; +