systeminformation 5.31.15 → 5.31.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cpu.js +5 -2
- package/package.json +1 -1
package/lib/cpu.js
CHANGED
|
@@ -1430,7 +1430,7 @@ function cpuTemperature(callback) {
|
|
|
1430
1430
|
else if (s.startsWith('coretemp') || s.startsWith('core')) section = 'core';
|
|
1431
1431
|
else if (s.startsWith('k10temp')) section = 'coreAMD';
|
|
1432
1432
|
else if (s.startsWith('cpu_thermal') || s.startsWith('cpu-thermal') || s.startsWith('soc_thermal') || s.startsWith('cpu')) section = 'cpuThermal';
|
|
1433
|
-
else section = 'other';
|
|
1433
|
+
else section = 'other';
|
|
1434
1434
|
newSectionStarts = false;
|
|
1435
1435
|
}
|
|
1436
1436
|
|
|
@@ -2016,6 +2016,9 @@ function getLoad() {
|
|
|
2016
2016
|
const cpus = os.cpus().map((cpu) => {
|
|
2017
2017
|
cpu.times.steal = 0;
|
|
2018
2018
|
cpu.times.guest = 0;
|
|
2019
|
+
if (_windows) {
|
|
2020
|
+
cpu.times.sys = Math.max(0, cpu.times.sys - cpu.times.irq);
|
|
2021
|
+
}
|
|
2019
2022
|
return cpu;
|
|
2020
2023
|
});
|
|
2021
2024
|
let totalUser = 0;
|
|
@@ -2230,7 +2233,7 @@ function getFullLoad() {
|
|
|
2230
2233
|
for (let i = 0, len = cpus.length; i < len; i++) {
|
|
2231
2234
|
const cpu = cpus[i].times;
|
|
2232
2235
|
totalUser += cpu.user;
|
|
2233
|
-
totalSystem += cpu.sys;
|
|
2236
|
+
totalSystem += _windows ? Math.max(0, cpu.sys - cpu.irq) : cpu.sys;
|
|
2234
2237
|
totalNice += cpu.nice;
|
|
2235
2238
|
totalIrq += cpu.irq;
|
|
2236
2239
|
totalIdle += cpu.idle;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "systeminformation",
|
|
3
|
-
"version": "5.31.
|
|
3
|
+
"version": "5.31.16",
|
|
4
4
|
"description": "Advanced, lightweight system and OS information library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Sebastian Hildebrandt <hildebrandt@plus-innovations.com> (https://plus-innovations.com)",
|