systeminformation 5.18.4 → 5.18.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 +9 -5
- package/package.json +1 -1
package/lib/cpu.js
CHANGED
|
@@ -642,12 +642,16 @@ function getCpu() {
|
|
|
642
642
|
const countCores = util.getValue(lines, 'hw.physicalcpu_max');
|
|
643
643
|
const countThreads = util.getValue(lines, 'hw.ncpu');
|
|
644
644
|
if (os.arch() === 'arm64') {
|
|
645
|
-
const clusters = execSync('ioreg -c IOPlatformDevice -d 3 -r | grep cluster-type').toString().split('\n');
|
|
646
|
-
const efficiencyCores = clusters.filter(line => line.indexOf('"E"') >= 0).length;
|
|
647
|
-
const performanceCores = clusters.filter(line => line.indexOf('"P"') >= 0).length;
|
|
648
645
|
result.socket = 'SOC';
|
|
649
|
-
|
|
650
|
-
|
|
646
|
+
try {
|
|
647
|
+
const clusters = execSync('ioreg -c IOPlatformDevice -d 3 -r | grep cluster-type').toString().split('\n');
|
|
648
|
+
const efficiencyCores = clusters.filter(line => line.indexOf('"E"') >= 0).length;
|
|
649
|
+
const performanceCores = clusters.filter(line => line.indexOf('"P"') >= 0).length;
|
|
650
|
+
result.efficiencyCores = efficiencyCores;
|
|
651
|
+
result.performanceCores = performanceCores;
|
|
652
|
+
} catch (e) {
|
|
653
|
+
util.noop();
|
|
654
|
+
}
|
|
651
655
|
}
|
|
652
656
|
if (countProcessors) {
|
|
653
657
|
result.processors = parseInt(countProcessors) || 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "systeminformation",
|
|
3
|
-
"version": "5.18.
|
|
3
|
+
"version": "5.18.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)",
|