systeminformation 5.12.1 → 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/README.md +1 -1
- package/lib/cpu.js +6 -6
- package/lib/network.js +2 -1
- package/lib/processes.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1009,7 +1009,7 @@ OSX Temperature: credits here are going to:
|
|
|
1009
1009
|
Linux is a registered trademark of Linus Torvalds. Apple, macOS, OS X are registered trademarks of Apple Inc.,
|
|
1010
1010
|
Windows is a registered trademark of Microsoft Corporation. Node.js is a trademark of Joyent Inc.,
|
|
1011
1011
|
Intel is a trademark of Intel Corporation, AMD is a trademark of Advanced Micro Devices Inc.,
|
|
1012
|
-
Raspberry Pi is a trademark of the Raspberry Pi Foundation, Debian is a trademark
|
|
1012
|
+
Raspberry Pi is a trademark of the Raspberry Pi Foundation, Debian is a trademark owned by Software in the Public Interest, Inc.,
|
|
1013
1013
|
Ubuntu is a trademark of Canonical Ltd., FreeBSD is a registered trademark of The FreeBSD Foundation,
|
|
1014
1014
|
NetBSD is a registered trademark of The NetBSD Foundation, Docker is a trademark of Docker, Inc., Sun,
|
|
1015
1015
|
Solaris, OpenSolaris and registered trademarks of Sun Microsystems, VMware is a trademark of VMware Inc,
|
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
|
-
|
|
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
|
-
|
|
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
|
@@ -494,7 +494,8 @@ function parseLinesDarwinNics(sections) {
|
|
|
494
494
|
}
|
|
495
495
|
}
|
|
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
|
+
nic.operstate = (operstate === 'active' ? 'up' : (operstate === 'inactive' ? 'down' : 'unknown'));
|
|
498
499
|
nic.duplex = util.getValue(section, 'media').toLowerCase().indexOf('half-duplex') > -1 ? 'half' : 'full';
|
|
499
500
|
if (nic.ip6 || nic.ip4 || nic.mac) {
|
|
500
501
|
nics.push(nic);
|
package/lib/processes.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "systeminformation",
|
|
3
|
-
"version": "5.12.
|
|
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)",
|