systeminformation 5.11.11 → 5.11.12
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/battery.js +2 -2
- package/package.json +1 -1
package/lib/battery.js
CHANGED
|
@@ -184,8 +184,8 @@ module.exports = function (callback) {
|
|
|
184
184
|
result.cycleCount = parseInt('0' + util.getValue(lines, 'cyclecount', '='), 10);
|
|
185
185
|
result.voltage = parseInt('0' + util.getValue(lines, 'voltage', '='), 10) / 1000.0;
|
|
186
186
|
result.capacityUnit = result.voltage ? 'mWh' : 'mAh';
|
|
187
|
-
result.maxCapacity = Math.round(parseInt('0' + util.getValue(lines, '
|
|
188
|
-
result.currentCapacity = Math.round(parseInt('0' + util.getValue(lines, '
|
|
187
|
+
result.maxCapacity = Math.round(parseInt('0' + util.getValue(lines, 'applerawmaxcapacity', '='), 10) * (result.voltage || 1));
|
|
188
|
+
result.currentCapacity = Math.round(parseInt('0' + util.getValue(lines, 'applerawxcurrentcapacity', '='), 10) * (result.voltage || 1));
|
|
189
189
|
result.designedCapacity = Math.round(parseInt('0' + util.getValue(lines, 'DesignCapacity', '='), 10) * (result.voltage || 1));
|
|
190
190
|
result.manufacturer = 'Apple';
|
|
191
191
|
result.serial = util.getValue(lines, 'BatterySerialNumber', '=');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "systeminformation",
|
|
3
|
-
"version": "5.11.
|
|
3
|
+
"version": "5.11.12",
|
|
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)",
|