diff --git a/CHANGELOG.md b/CHANGELOG.md index e58ee99..408b1df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page. | Version | Date | Comment | | -------------- | -------------- | -------- | +| 4.26.9 | 2020-06-06 | `networkStats()` fixed comparison issue windows | | 4.26.8 | 2020-06-06 | `networkInterfaces()` fixed caching issue | | 4.26.7 | 2020-06-06 | `cpuTemperature()` fixed raspberry pi sensors issue | | 4.26.6 | 2020-06-03 | `diskLayout()` fixed issue linux | diff --git a/docs/history.html b/docs/history.html index fc45b25..5c6a0b8 100644 --- a/docs/history.html +++ b/docs/history.html @@ -83,6 +83,11 @@ + + 4.26.9 + 2020-06-06 + networkStats() fixed comparison issue windows + 4.26.8 2020-06-06 diff --git a/docs/index.html b/docs/index.html index 59bc9e6..52fef41 100644 --- a/docs/index.html +++ b/docs/index.html @@ -168,7 +168,7 @@
systeminformation
-
Current Version: 4.26.8
+
Current Version: 4.26.9
diff --git a/lib/network.js b/lib/network.js index d9f69d1..e7a510a 100644 --- a/lib/network.js +++ b/lib/network.js @@ -1019,7 +1019,7 @@ function networkStatsSingle(iface) { if (sections[i].trim() !== '') { let lines = sections[i].trim().split('\r\n'); perfData.push({ - name: util.getValue(lines, 'Name', '=').replace(/[()\[\] ]+/g, '').toLowerCase(), + name: util.getValue(lines, 'Name', '=').replace(/[()\[\] ]+/g, '').replace('#', '_').toLowerCase(), rx_bytes: parseInt(util.getValue(lines, 'BytesReceivedPersec', '='), 10), rx_errors: parseInt(util.getValue(lines, 'PacketsReceivedErrors', '='), 10), rx_dropped: parseInt(util.getValue(lines, 'PacketsReceivedDiscarded', '='), 10), @@ -1165,8 +1165,8 @@ function networkStatsSingle(iface) { det.mac.toLowerCase() === ifaceSanitized.toLowerCase() || det.ip4.toLowerCase() === ifaceSanitized.toLowerCase() || det.ip6.toLowerCase() === ifaceSanitized.toLowerCase() || - det.ifaceName.replace(/[()\[\] ]+/g, '').toLowerCase() === ifaceSanitized.replace(/[()\[\] ]+/g, '').toLowerCase()) && - (det.ifaceName.replace(/[()\[\] ]+/g, '').toLowerCase() === detail.name)) { + det.ifaceName.replace(/[()\[\] ]+/g, '').replace('#', '_').toLowerCase() === ifaceSanitized.replace(/[()\[\] ]+/g, '').replace('#', '_').toLowerCase()) && + (det.ifaceName.replace(/[()\[\] ]+/g, '').replace('#', '_').toLowerCase() === detail.name)) { ifaceName = det.iface; rx_bytes = detail.rx_bytes; rx_dropped = detail.rx_dropped;