systeminformation 5.12.3 → 5.12.4

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
@@ -1066,9 +1066,9 @@ function cpuTemperature(callback) {
1066
1066
  });
1067
1067
 
1068
1068
  if (result.cores.length > 0) {
1069
- if (result.main === null) {
1070
- result.main = Math.round(result.cores.reduce((a, b) => a + b, 0) / result.cores.length);
1071
- }
1069
+ // if (result.main === null) {
1070
+ result.main = Math.round(result.cores.reduce((a, b) => a + b, 0) / result.cores.length);
1071
+ // }
1072
1072
  let maxtmp = Math.max.apply(Math, result.cores);
1073
1073
  result.max = (maxtmp > result.main) ? maxtmp : result.main;
1074
1074
  }
@@ -1122,9 +1122,9 @@ function cpuTemperature(callback) {
1122
1122
  }
1123
1123
  });
1124
1124
  if (result.cores.length > 0) {
1125
- if (result.main === null) {
1126
- result.main = Math.round(result.cores.reduce((a, b) => a + b, 0) / result.cores.length);
1127
- }
1125
+ // if (result.main === null) {
1126
+ result.main = Math.round(result.cores.reduce((a, b) => a + b, 0) / result.cores.length);
1127
+ // }
1128
1128
  let maxtmp = Math.max.apply(Math, result.cores);
1129
1129
  result.max = (maxtmp > result.main) ? maxtmp : result.main;
1130
1130
  } else {
package/lib/network.js CHANGED
@@ -496,7 +496,6 @@ function parseLinesDarwinNics(sections) {
496
496
  nic.type = util.getValue(section, 'type').toLowerCase().indexOf('wi-fi') > -1 ? 'wireless' : 'wired';
497
497
  const operstate = util.getValue(section, 'status').toLowerCase();
498
498
  nic.operstate = (operstate === 'active' ? 'up' : (operstate === 'inactive' ? 'down' : 'unknown'));
499
- // nic.operstate = util.getValue(section, 'status').toLowerCase().indexOf('active') > -1 ? 'up' : 'down';
500
499
  nic.duplex = util.getValue(section, 'media').toLowerCase().indexOf('half-duplex') > -1 ? 'half' : 'full';
501
500
  if (nic.ip6 || nic.ip4 || nic.mac) {
502
501
  nics.push(nic);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systeminformation",
3
- "version": "5.12.3",
3
+ "version": "5.12.4",
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)",