fsSize() fix parsing linux (df)

This commit is contained in:
Sebastian Hildebrandt 2022-07-10 06:09:18 +02:00
parent 05c1c5f8d6
commit 94973f6b2a
4 changed files with 9 additions and 3 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.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) |
| 5.11.21 | 2022-06-17 | `fsSize()` fix parsing linux (df) |

View File

@ -58,7 +58,12 @@
</thead>
<tbody>
<tr>
<th scope="row">5.11.22</th>
<th scope="row">5.11.24</th>
<td>2022-07-10</td>
<td><span class="code">fsSize()</span> fix parsing linux (df)</td>
</tr>
<tr>
<th scope="row">5.11.23</th>
<td>2022-07-09</td>
<td><span class="code">fsSize()</span>,<span class="code">basebard()</span>,<span class="code">cpuTemeratur()</span> fixes</td>
</tr>

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.23</span></div>
<div class="version">New Version: <span id="version">5.11.24</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

@ -50,7 +50,7 @@ function fsSize(callback) {
}
function isLinuxTmpFs(fs) {
const linuxTmpFileSystems = ['rootfs', 'unionfs', 'squashfs', 'cramfs', 'initrd', 'initramfs', 'devtmpfs', 'tmpfs', 'udev', 'devfs', 'specfs', 'type', 'appimaged', 'fuse.'];
const linuxTmpFileSystems = ['rootfs', 'unionfs', 'squashfs', 'cramfs', 'initrd', 'initramfs', 'devtmpfs', 'tmpfs', 'udev', 'devfs', 'specfs', 'type', 'appimaged'];
let result = false;
linuxTmpFileSystems.forEach(linuxFs => {
if (fs.toLowerCase().indexOf(linuxFs) >= 0) result = true;