battery() fixed typo seperator (windows)
This commit is contained in:
parent
6b4b5e9f19
commit
22f8772319
@ -80,6 +80,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
|
||||
|
||||
| Version | Date | Comment |
|
||||
| -------------- | -------------- | -------- |
|
||||
| 5.9.7 | 2021-10-09 | `battery()` fixed typo seperator (windows) |
|
||||
| 5.9.6 | 2021-10-08 | `system()` fixed virtual on WSL2 |
|
||||
| 5.9.5 | 2021-10-08 | `battery()` fixed isCharging (windows) |
|
||||
| 5.9.4 | 2021-09-23 | `processes()` fixed memVsz, Memrss (macOS M1) |
|
||||
|
||||
@ -165,7 +165,7 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>I know, these are <span class="bold">a lot of changes</span>, but for the sake of a consistent interface and to be future proof, we think that this was necessary. Thynk you for your understanding.</p>
|
||||
<p>I know, these are <span class="bold">a lot of changes</span>, but for the sake of a consistent interface and to be future proof, we think that this was necessary. Thank you for your understanding.</p>
|
||||
<h4>Other Improvements and Changes</h4>
|
||||
<ul>
|
||||
<li><span class="code">baseboard()</span>: added memMax, memSlots</li>
|
||||
|
||||
@ -57,6 +57,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">5.9.7</th>
|
||||
<td>2021-10-09</td>
|
||||
<td><span class="code">battery()</span> fixed typo seperator (windows)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">5.9.6</th>
|
||||
<td>2021-10-08</td>
|
||||
|
||||
@ -170,7 +170,7 @@
|
||||
<img class="logo" src="assets/logo.png">
|
||||
<div class="title">systeminformation</div>
|
||||
<div class="subtitle"><span id="typed"></span> </div>
|
||||
<div class="version">New Version: <span id="version">5.9.6</span></div>
|
||||
<div class="version">New Version: <span id="version">5.9.7</span></div>
|
||||
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
|
||||
</div>
|
||||
<div class="down">
|
||||
|
||||
@ -120,7 +120,7 @@ module.exports = function (callback) {
|
||||
result.currentCapacity = Math.round(parseInt('0' + util.getValue(lines, 'POWER_SUPPLY_CHARGE_NOW', '='), 10) / 1000.0 * (result.voltage || 1));
|
||||
if (!result.maxCapacity) {
|
||||
result.maxCapacity = parseInt('0' + util.getValue(lines, 'POWER_SUPPLY_ENERGY_FULL', '=', true, true), 10) / 1000.0;
|
||||
result.designedCapacity = parseInt('0' + util.getValue(lines, 'POWER_SUPPLY_ENERGY_FULL_DESIGN', true, true, '='), 10) / 1000.0 | result.maxCapacity;
|
||||
result.designedCapacity = parseInt('0' + util.getValue(lines, 'POWER_SUPPLY_ENERGY_FULL_DESIGN', '=', true, true), 10) / 1000.0 | result.maxCapacity;
|
||||
result.currentCapacity = parseInt('0' + util.getValue(lines, 'POWER_SUPPLY_ENERGY_NOW', '='), 10) / 1000.0;
|
||||
}
|
||||
const percent = util.getValue(lines, 'POWER_SUPPLY_CAPACITY', '=');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user