systeminformation 5.27.7 → 5.27.8
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 +3 -0
- package/lib/filesystem.js +4 -14
- package/package.json +1 -1
package/lib/cpu.js
CHANGED
|
@@ -755,6 +755,9 @@ function getCpu() {
|
|
|
755
755
|
modelline = util.cleanString(modelline);
|
|
756
756
|
const modellineParts = modelline.split('@');
|
|
757
757
|
result.brand = modellineParts[0].trim();
|
|
758
|
+
if (result.brand.indexOf('Unknown') >= 0) {
|
|
759
|
+
result.brand = result.brand.split('Unknown')[0].trim();
|
|
760
|
+
}
|
|
758
761
|
result.speed = modellineParts[1] ? parseFloat(modellineParts[1].trim()) : 0;
|
|
759
762
|
if (result.speed === 0 && (result.brand.indexOf('AMD') > -1 || result.brand.toLowerCase().indexOf('ryzen') > -1)) {
|
|
760
763
|
result.speed = getAMDSpeed(result.brand);
|
package/lib/filesystem.js
CHANGED
|
@@ -1416,23 +1416,13 @@ function diskLayout(callback) {
|
|
|
1416
1416
|
}
|
|
1417
1417
|
}
|
|
1418
1418
|
});
|
|
1419
|
-
|
|
1420
|
-
delete result[i].BSDName;
|
|
1421
|
-
}
|
|
1422
|
-
if (callback) {
|
|
1423
|
-
callback(result);
|
|
1424
|
-
}
|
|
1425
|
-
resolve(result);
|
|
1419
|
+
commitResult(result);
|
|
1426
1420
|
});
|
|
1427
1421
|
} else {
|
|
1428
|
-
|
|
1429
|
-
delete result[i].BSDName;
|
|
1430
|
-
}
|
|
1431
|
-
if (callback) {
|
|
1432
|
-
callback(result);
|
|
1433
|
-
}
|
|
1434
|
-
resolve(result);
|
|
1422
|
+
commitResult(result);
|
|
1435
1423
|
}
|
|
1424
|
+
} else {
|
|
1425
|
+
commitResult(result);
|
|
1436
1426
|
}
|
|
1437
1427
|
});
|
|
1438
1428
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "systeminformation",
|
|
3
|
-
"version": "5.27.
|
|
3
|
+
"version": "5.27.8",
|
|
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)",
|