Skip to content

Commit

Permalink
networkInterfaces() fixed speed of not connected interfaces (windows)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebhildebrandt committed Mar 19, 2024
1 parent f89b82d commit 8f4b013
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) |
Expand Down
5 changes: 5 additions & 0 deletions docs/history.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ <h3>Full version history</h3>
</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>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
2 changes: 1 addition & 1 deletion lib/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8f4b013

Please sign in to comment.