systeminformation 5.25.0 → 5.25.1
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 +2 -2
- package/package.json +1 -1
package/lib/cpu.js
CHANGED
|
@@ -1003,9 +1003,9 @@ function getCpuCurrentSpeedSync() {
|
|
|
1003
1003
|
}
|
|
1004
1004
|
} else if (_linux) {
|
|
1005
1005
|
try {
|
|
1006
|
-
speedStrings = execSync('cat /proc/cpuinfo | grep "cpu MHz" | cut -d " " -f 3', util.execOptsLinux).toString().split('\n');
|
|
1006
|
+
const speedStrings = execSync('cat /proc/cpuinfo | grep "cpu MHz" | cut -d " " -f 3', util.execOptsLinux).toString().split('\n').filter((line) => line.length > 0);
|
|
1007
1007
|
for (let i in speedStrings) {
|
|
1008
|
-
speeds.push(parseInt(speedStrings, 10));
|
|
1008
|
+
speeds.push(Math.floor(parseInt(speedStrings[i], 10) / 10) / 100);
|
|
1009
1009
|
}
|
|
1010
1010
|
} catch {
|
|
1011
1011
|
util.noop();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "systeminformation",
|
|
3
|
-
"version": "5.25.
|
|
3
|
+
"version": "5.25.1",
|
|
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)",
|