fsSize() fix excluding loop/snap devices
This commit is contained in:
parent
d5ba180dcd
commit
6805850049
@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
|
||||
|
||||
| Version | Date | Comment |
|
||||
| -------------- | -------------- | -------- |
|
||||
| 4.18.3 | 2020-01-10 | `fsSize()` fix excluding loop/snap devices |
|
||||
| 4.18.2 | 2020-01-10 | `memLayout()` fix memsize linux (modules >= 32 GB) |
|
||||
| 4.18.1 | 2020-01-07 | updated docs |
|
||||
| 4.18.0 | 2020-01-07 | `networkInterfaces()` added dhcp for mac os, added dhcp linux fallback |
|
||||
|
||||
@ -83,6 +83,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">4.18.3</th>
|
||||
<td>2020-01-10</td>
|
||||
<td><span class="code">fsSize()</span> fix excluding loop/snap devices</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">4.18.2</th>
|
||||
<td>2020-01-10</td>
|
||||
|
||||
@ -168,7 +168,7 @@
|
||||
<img class="logo" src="assets/logo.png">
|
||||
<div class="title">systeminformation</div>
|
||||
<div class="subtitle"><span id="typed"></span></div>
|
||||
<div class="version">Current Version: <span id="version">4.18.2</span></div>
|
||||
<div class="version">Current Version: <span id="version">4.18.3</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">
|
||||
|
||||
@ -71,7 +71,7 @@ function fsSize(callback) {
|
||||
if (_linux || _freebsd || _openbsd || _netbsd || _darwin) {
|
||||
let cmd = '';
|
||||
if (_darwin) cmd = 'df -lkP | grep ^/';
|
||||
if (_linux) cmd = 'df -lkPT | grep ^/';
|
||||
if (_linux) cmd = 'df -lkPTx squashfs | grep ^/';
|
||||
if (_freebsd || _openbsd || _netbsd) cmd = 'df -lkPT';
|
||||
exec(cmd, function (error, stdout) {
|
||||
if (!error) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user