systeminformation 5.9.2 → 5.9.3

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/CHANGELOG.md CHANGED
@@ -47,10 +47,13 @@ We had to make **several interface changes** to keep systeminformation as consis
47
47
  - `cpu()`: added virtualization if cpu supports virtualization
48
48
  - `cpu()`: now flags are part of this function
49
49
  - `cpuTemperature()` added added socket and chipset temp (linux)
50
+ - `disksIO()` added wait time (linux)
50
51
  - `diskLayout()`: added USB drives (mac OS)
52
+ - `diskLayout()`: added S.M.R.R.T. (win)
51
53
  - `fsSize()`: added available
52
54
  - `fsSize()`: improved calculation of used
53
55
  - `getData()`: support for passing parameters and filters (see section General / getData)
56
+ - `graphics()`: extended properties (mac OS)
54
57
  - `graphics()`: extended nvidia-smi parsing
55
58
  - `networkInterfaces()`: type detection improved (win - wireless)
56
59
  - `memLayout()`: extended manufacturer list (decoding)
@@ -77,6 +80,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
77
80
 
78
81
  | Version | Date | Comment |
79
82
  | -------------- | -------------- | -------- |
83
+ | 5.9.3 | 2021-09-17 | `cpuTemperature()` improved tdie detection (linus) |
80
84
  | 5.9.2 | 2021-09-16 | `graohics()` (macOS), `memLayout()` (win) improvements |
81
85
  | 5.9.1 | 2021-09-15 | `diskLayout()` fix size (macOS) |
82
86
  | 5.9.0 | 2021-09-15 | `graphics()` new XML parser, added properties (macOS) |
package/lib/cpu.js CHANGED
@@ -967,7 +967,12 @@ function cpuTemperature(callback) {
967
967
  const cmd = 'for mon in /sys/class/hwmon/hwmon*; do for label in "$mon"/temp*_label; do if [ -f $label ]; then value=$(echo $label | rev | cut -c 7- | rev)_input; if [ -f "$value" ]; then echo $(cat "$label")___$(cat "$value"); fi; fi; done; done;';
968
968
  try {
969
969
  exec(cmd, function (error, stdout) {
970
- let lines = stdout.toString().split('\n');
970
+ stdout = stdout.toString();
971
+ const tdiePos = stdout.toLowerCase().indexOf('tdie');
972
+ if (tdiePos !== -1) {
973
+ stdout = stdout.substring(tdiePos);
974
+ }
975
+ let lines = stdout.split('\n');
971
976
  lines.forEach(line => {
972
977
  const parts = line.split('___');
973
978
  const label = parts[0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systeminformation",
3
- "version": "5.9.2",
3
+ "version": "5.9.3",
4
4
  "description": "Simple system and OS information library",
5
5
  "license": "MIT",
6
6
  "author": "Sebastian Hildebrandt <hildebrandt@plus-innovations.com> (https://plus-innovations.com)",