fsSize() fixed syntax error
This commit is contained in:
parent
566f5b2ff2
commit
2d6a9214f1
@ -82,6 +82,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
|
|||||||
|
|
||||||
| Version | Date | Comment |
|
| Version | Date | Comment |
|
||||||
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
|
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
|
||||||
|
| 5.18.14 | 2023-08-09 | `fsSIze()` fixed syntax error |
|
||||||
| 5.18.13 | 2023-08-08 | `mem()` fixed error handling |
|
| 5.18.13 | 2023-08-08 | `mem()` fixed error handling |
|
||||||
| 5.18.12 | 2023-08-05 | `fsSize()` rw /snap/ issue fixed (linux) |
|
| 5.18.12 | 2023-08-05 | `fsSize()` rw /snap/ issue fixed (linux) |
|
||||||
| 5.18.11 | 2023-08-04 | `bluetooth()` improved parsing, macOS Sonoma detection |
|
| 5.18.11 | 2023-08-04 | `bluetooth()` improved parsing, macOS Sonoma detection |
|
||||||
|
|||||||
@ -57,6 +57,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">5.18.14</th>
|
||||||
|
<td>2023-08-09</td>
|
||||||
|
<td><span class="code">fsSize()</span> fixed syntax error</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">5.18.13</th>
|
<th scope="row">5.18.13</th>
|
||||||
<td>2023-08-08</td>
|
<td>2023-08-08</td>
|
||||||
|
|||||||
@ -170,7 +170,7 @@
|
|||||||
<img class="logo" src="assets/logo.png" alt="logo">
|
<img class="logo" src="assets/logo.png" alt="logo">
|
||||||
<div class="title">systeminformation</div>
|
<div class="title">systeminformation</div>
|
||||||
<div class="subtitle"><span id="typed"></span> </div>
|
<div class="subtitle"><span id="typed"></span> </div>
|
||||||
<div class="version">New Version: <span id="version">5.18.13</span></div>
|
<div class="version">New Version: <span id="version">5.18.14</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>
|
<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>
|
||||||
<div class="down">
|
<div class="down">
|
||||||
|
|||||||
@ -142,7 +142,7 @@ function fsSize(drive, callback) {
|
|||||||
execSync('cat /proc/mounts 2>/dev/null').toString().split('\n').filter(line => {
|
execSync('cat /proc/mounts 2>/dev/null').toString().split('\n').filter(line => {
|
||||||
return line.startsWith('/');
|
return line.startsWith('/');
|
||||||
}).forEach((line) => {
|
}).forEach((line) => {
|
||||||
osMounts[line.split(' ')[0]] = osMounts[line.split(' ')[0]] ?? false;
|
osMounts[line.split(' ')[0]] = osMounts[line.split(' ')[0]] || false;
|
||||||
if (line.toLowerCase().indexOf('/snap/') === -1) {
|
if (line.toLowerCase().indexOf('/snap/') === -1) {
|
||||||
osMounts[line.split(' ')[0]] = ((line.toLowerCase().indexOf('rw,') >= 0 || line.toLowerCase().indexOf(' rw ') >= 0));
|
osMounts[line.split(' ')[0]] = ((line.toLowerCase().indexOf('rw,') >= 0 || line.toLowerCase().indexOf(' rw ') >= 0));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user