networkInterfaces() fixed speed of not connected interfaces (windows)

This commit is contained in:
Sebastian Hildebrandt 2024-03-19 08:17:26 +01:00
parent f89b82ddde
commit 8f4b013b63
4 changed files with 9 additions and 3 deletions

View File

@ -83,7 +83,8 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
| Version | Date | Comment |
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
| 5.22.5 | 2024-03-19 | `wifiCOnnections()` fixed formatting bssid (macOS) |
| 5.22.6 | 2024-03-20 | `networkInterfaces()` fixed speed of not connected interfaces (windows) |
| 5.22.5 | 2024-03-19 | `wifiConnections()` fixed formatting bssid (macOS) |
| 5.22.4 | 2024-03-16 | `uuid()` improved parsing machine id (linux) |
| 5.22.3 | 2024-03-15 | `chassis()` improved parsing memory bank (windows) |
| 5.22.2 | 2024-03-14 | `chassis()` type, assetTag, sku improved parsing (macOS) |

View File

@ -57,6 +57,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">5.22.6</th>
<td>2024-03-20</td>
<td><span class="code">networkInterfaces()</span> fixed speed of not connected interfaces (windows)</td>
</tr>
<tr>
<th scope="row">5.22.5</th>
<td>2024-03-19</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.22.5</span></div>
<div class="version">New Version: <span id="version">5.22.6</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

@ -1033,7 +1033,7 @@ function networkInterfaces(callback, rescan, defaultString) {
ifaceName = detail.name;
dhcp = detail.dhcp;
operstate = detail.operstate;
speed = detail.speed;
speed = operstate === 'up' ? detail.speed : 0;
type = detail.type;
foundFirst = true;
}