systeminformation 5.9.6 → 5.9.7
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 +1 -0
- package/lib/battery.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -80,6 +80,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
|
|
|
80
80
|
|
|
81
81
|
| Version | Date | Comment |
|
|
82
82
|
| -------------- | -------------- | -------- |
|
|
83
|
+
| 5.9.7 | 2021-10-09 | `battery()` fixed typo seperator (windows) |
|
|
83
84
|
| 5.9.6 | 2021-10-08 | `system()` fixed virtual on WSL2 |
|
|
84
85
|
| 5.9.5 | 2021-10-08 | `battery()` fixed isCharging (windows) |
|
|
85
86
|
| 5.9.4 | 2021-09-23 | `processes()` fixed memVsz, Memrss (macOS M1) |
|
package/lib/battery.js
CHANGED
|
@@ -120,7 +120,7 @@ module.exports = function (callback) {
|
|
|
120
120
|
result.currentCapacity = Math.round(parseInt('0' + util.getValue(lines, 'POWER_SUPPLY_CHARGE_NOW', '='), 10) / 1000.0 * (result.voltage || 1));
|
|
121
121
|
if (!result.maxCapacity) {
|
|
122
122
|
result.maxCapacity = parseInt('0' + util.getValue(lines, 'POWER_SUPPLY_ENERGY_FULL', '=', true, true), 10) / 1000.0;
|
|
123
|
-
result.designedCapacity = parseInt('0' + util.getValue(lines, 'POWER_SUPPLY_ENERGY_FULL_DESIGN',
|
|
123
|
+
result.designedCapacity = parseInt('0' + util.getValue(lines, 'POWER_SUPPLY_ENERGY_FULL_DESIGN', '=', true, true), 10) / 1000.0 | result.maxCapacity;
|
|
124
124
|
result.currentCapacity = parseInt('0' + util.getValue(lines, 'POWER_SUPPLY_ENERGY_NOW', '='), 10) / 1000.0;
|
|
125
125
|
}
|
|
126
126
|
const percent = util.getValue(lines, 'POWER_SUPPLY_CAPACITY', '=');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "systeminformation",
|
|
3
|
-
"version": "5.9.
|
|
3
|
+
"version": "5.9.7",
|
|
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)",
|