fsSize() fix issues filtering (linux)

This commit is contained in:
Sebastian Hildebrandt 2022-07-11 13:59:10 +02:00
parent 9e1eb18dca
commit eb14641d14
4 changed files with 8 additions and 2 deletions

View File

@ -80,6 +80,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
| Version | Date | Comment |
| -------------- | -------------- | -------- |
| 5.11.25 | 2022-07-11 | `fsSize()` fix iussue filtering (linux) |
| 5.11.24 | 2022-07-10 | `fsSize()` fix parsing linux (df) |
| 5.11.23 | 2022-07-09 | `fsSize()` fixes (linux), `baseboard()` fix (windows), `cpuTemperatur()` fix linux |
| 5.11.22 | 2022-06-24 | `processes()` improved parsing (linux, mac OS) |

View File

@ -57,6 +57,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">5.11.25</th>
<td>2022-07-11</td>
<td><span class="code">fsSize()</span> fix issue filtering (df)</td>
</tr>
<tr>
<th scope="row">5.11.24</th>
<td>2022-07-10</td>

View File

@ -170,7 +170,7 @@
<img class="logo" src="assets/logo.png">
<div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span>&nbsp;</div>
<div class="version">New Version: <span id="version">5.11.24</span></div>
<div class="version">New Version: <span id="version">5.11.25</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">

View File

@ -63,7 +63,7 @@ function fsSize(callback) {
if (stdout.toString().toLowerCase().indexOf('filesystem')) {
let removeLines = 0;
for (let i = 0; i < lines.length; i++) {
if (line[i] && lines[i].toLowerCase().startsWith('filesystem')) {
if (lines[i] && lines[i].toLowerCase().startsWith('filesystem')) {
removeLines = i;
}
}