powerShwll() Windows 7 fix compatibility issues (windows)

This commit is contained in:
Sebastian Hildebrandt 2025-12-29 15:28:52 +01:00
parent 4af416daa9
commit 812f448f48
4 changed files with 10 additions and 6 deletions

View File

@ -90,6 +90,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
| Version | Date | Comment |
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
| 5.28.4 | 2025-12-29 | `powerShwll()` Windows 7 fix compatibility issues (windows) |
| 5.28.3 | 2025-12-28 | `processes()`, `processLoad()` fix command line parsing (windows) |
| 5.28.2 | 2025-12-27 | `networkConnections()` fix missing PIDs ss command (linux) |
| 5.28.1 | 2025-12-26 | `networkInterface()` fix secondary and link-local ip (linux, macOS) |

View File

@ -57,6 +57,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">5.28.4</th>
<td>2025-12-28</td>
<td><span class="code">powerShell()</span> Windows 7 fix compatibility issues (windows)</td>
</tr>
<tr>
<th scope="row">5.28.3</th>
<td>2025-12-28</td>

View File

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

@ -194,11 +194,9 @@ function fsSize(drive, callback) {
}
resolve(data);
} else {
exec('df -kPT', { maxBuffer: 1024 * 1024 }, (error, stdout) => {
if (!error) {
const lines = filterLines(stdout);
data = parseDf(lines);
}
exec('df -kPT 2>/dev/null', { maxBuffer: 1024 * 1024 }, (error, stdout) => {
const lines = filterLines(stdout);
data = parseDf(lines);
if (callback) {
callback(data);
}