systeminformation 5.28.4 → 5.28.5
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 +1 -1
- package/package.json +1 -1
package/lib/cpu.js
CHANGED
|
@@ -1238,7 +1238,7 @@ function getCpuCurrentSpeedSync() {
|
|
|
1238
1238
|
const cores = [];
|
|
1239
1239
|
const speeds = [];
|
|
1240
1240
|
|
|
1241
|
-
if (cpus &&
|
|
1241
|
+
if (cpus && cpus.length && Object.prototype.hasOwnProperty.call(cpus[0], 'speed')) {
|
|
1242
1242
|
for (let i in cpus) {
|
|
1243
1243
|
speeds.push(cpus[i].speed > 100 ? (cpus[i].speed + 1) / 1000 : cpus[i].speed / 10);
|
|
1244
1244
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "systeminformation",
|
|
3
|
-
"version": "5.28.
|
|
3
|
+
"version": "5.28.5",
|
|
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)",
|