diff --git a/CHANGELOG.md b/CHANGELOG.md index d2612da..44ffdd4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -90,6 +90,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | ------- | ---------- | --------------------------------------------------------------------------------------------------- | +| 5.28.7 | 2026-12-31 | `networkInterfaces()` fix wireless speed (linux) | | 5.28.6 | 2025-12-31 | `npx systeminformation` improved output | | 5.28.5 | 2025-12-30 | `cpuCurrentSpeed()` fix cpu loop issue | | 5.28.4 | 2025-12-29 | `powerShell()` Windows 7 fix compatibility issues (windows) | diff --git a/docs/history.html b/docs/history.html index 9b229da..5b46b59 100644 --- a/docs/history.html +++ b/docs/history.html @@ -57,6 +57,11 @@ + + 5.28.7 + 2025-12-31 + networkInterfaces() fix wireless speed (linux) + 5.28.6 2025-12-31 diff --git a/docs/index.html b/docs/index.html index ea457ed..cef22cf 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.28.6
+
New Version: 5.28.7
@@ -212,7 +212,7 @@
Downloads last month
-
929
+
931
Dependents
diff --git a/lib/network.js b/lib/network.js index e557ed3..e885c8e 100644 --- a/lib/network.js +++ b/lib/network.js @@ -997,9 +997,9 @@ function networkInterfaces(callback, rescan, defaultString) { mtu = parseInt(util.getValue(lines, 'mtu'), 10); let myspeed = parseInt(util.getValue(lines, 'speed'), 10); speed = isNaN(myspeed) ? null : myspeed; - let wirelessspeed = util.getValue(lines, 'wirelessspeed').split('tx bitrate: '); - if (speed === null && wirelessspeed.length === 2) { - myspeed = parseFloat(wirelessspeed[1]); + const wirelessspeed = util.getValue(lines, 'tx bitrate'); + if (speed === null && wirelessspeed) { + myspeed = parseFloat(wirelessspeed); speed = isNaN(myspeed) ? null : myspeed; } carrierChanges = parseInt(util.getValue(lines, 'carrier_changes'), 10);