systeminformation 5.31.7 → 5.31.9

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 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/lib/util.js CHANGED
@@ -1165,7 +1165,7 @@ function promiseAll(promises) {
1165
1165
  }
1166
1166
 
1167
1167
  function promisify(nodeStyleFunction) {
1168
- return () => {
1168
+ return function () {
1169
1169
  const args = Array.prototype.slice.call(arguments);
1170
1170
  return new Promise((resolve, reject) => {
1171
1171
  args.push((err, data) => {
@@ -1181,7 +1181,7 @@ function promisify(nodeStyleFunction) {
1181
1181
  }
1182
1182
 
1183
1183
  function promisifySave(nodeStyleFunction) {
1184
- return () => {
1184
+ return function () {
1185
1185
  const args = Array.prototype.slice.call(arguments);
1186
1186
  return new Promise((resolve) => {
1187
1187
  args.push((err, data) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systeminformation",
3
- "version": "5.31.7",
3
+ "version": "5.31.9",
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)",