networkInterfaces(), users() improved date parsing (linux)

This commit is contained in:
Sebastian Hildebrandt 2026-01-07 15:54:28 +01:00
parent 493ee1f8c2
commit b87c40376e
4 changed files with 11 additions and 4 deletions

View File

@ -90,6 +90,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
| Version | Date | Comment |
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
| 5.30.1 | 2026-01-07 | `networkInterfaces()`, `users()` improved date parsing (linux). |
| 5.30.0 | 2026-01-06 | `processes()` added user (windows) |
| 5.29.1 | 2026-01-05 | `fsSize()` support network attached storage (linux) |
| 5.29.0 | 2026-01-04 | `osInfo()` added OS code name (windows) |

View File

@ -57,6 +57,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">5.30.2</th>
<td>2026-01-07</td>
<td><span class="code">users()</span> improved date parsing (linux)</td>
</tr>
<tr>
<th scope="row">5.30.0</th>
<td>2026-01-06</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.30.0</span></div>
<div class="version">New Version: <span id="version">5.30.1</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">
@ -204,7 +204,7 @@
</div>
<div class="row number-section">
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
<div class="numbers">19,659</div>
<div class="numbers">20,651</div>
<div class="title">Lines of code</div>
</div>
<div class="col-xl-4 col-lg-4 col-md-4 col-12">

View File

@ -425,8 +425,9 @@ function getWindowsIEEE8021x(connectionType, iface, ifaces) {
ifaceSanitized = ifaceSanitized + s[i];
}
}
i8021xState = execSync(`netsh wlan show profiles "${ifaceSanitized}" | findstr "802.1X"`, util.execOptsWin);
i8021xProtocol = execSync(`netsh wlan show profiles "${ifaceSanitized}" | findstr "EAP"`, util.execOptsWin);
const profiles = execSync(`netsh wlan show profiles "${ifaceSanitized}"`, util.execOptsWin).split('\r\n');
i8021xState = (profiles.find((l) => l.indexOf('802.1X') >= 0) || '').trim();
i8021xProtocol = (profiles.find((l) => l.indexOf('EAP') >= 0) || '').trim();
}
if (i8021xState.includes(':') && i8021xProtocol.includes(':')) {