systeminformation 5.31.7 → 5.31.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 +1 -1
- package/package.json +1 -1
package/lib/cpu.js
CHANGED
|
@@ -929,7 +929,7 @@ function getCpu() {
|
|
|
929
929
|
result.socket = 'SOC';
|
|
930
930
|
try {
|
|
931
931
|
const clusters = execSync('ioreg -c IOPlatformDevice -d 3 -r | grep cluster-type').toString().split('\n');
|
|
932
|
-
const efficiencyCores = clusters.filter((line) => line.indexOf('"E"') >= 0).length;
|
|
932
|
+
const efficiencyCores = clusters.filter((line) => line.indexOf('"E"') >= 0).length + clusters.filter((line) => line.indexOf('"M"') >= 0).length;
|
|
933
933
|
const performanceCores = clusters.filter((line) => line.indexOf('"P"') >= 0).length;
|
|
934
934
|
result.efficiencyCores = efficiencyCores;
|
|
935
935
|
result.performanceCores = performanceCores;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "systeminformation",
|
|
3
|
-
"version": "5.31.
|
|
3
|
+
"version": "5.31.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)",
|