From 04c1cbf88169fcbcabff29fd97e8dacc3c9b666e Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Tue, 25 Aug 2020 10:36:49 +0200 Subject: [PATCH] networkStats() fixed packages dropped (linux) --- CHANGELOG.md | 1 + docs/history.html | 5 +++++ docs/index.html | 2 +- lib/network.js | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed110de..8d24f4a 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.27.1 | 2020-08-25 | `networkStats()` fixed packages dropped (linux) | | 4.27.0 | 2020-08-24 | `observe()` added function to observe/watch system parameters | | 4.26.12 | 2020-08-21 | `versions()` fixed issue windows | | 4.26.11 | 2020-08-20 | `cpuTemperature()` fixed issue windows | diff --git a/docs/history.html b/docs/history.html index cb89605..74ad317 100644 --- a/docs/history.html +++ b/docs/history.html @@ -83,6 +83,11 @@ + + 4.27.1 + 2020-08-25 + networkStats() fixed packages dropped (linux) + 4.27.0 2020-08-24 diff --git a/docs/index.html b/docs/index.html index 9d92863..ade78cf 100644 --- a/docs/index.html +++ b/docs/index.html @@ -168,7 +168,7 @@
systeminformation
-
Current Version: 4.27.0
+
Current Version: 4.27.1
diff --git a/lib/network.js b/lib/network.js index 0af8932..bd73782 100644 --- a/lib/network.js +++ b/lib/network.js @@ -1072,7 +1072,7 @@ function networkStatsSingle(iface) { 'cat /sys/class/net/' + ifaceSanitized + '/statistics/tx_bytes; ' + 'cat /sys/class/net/' + ifaceSanitized + '/statistics/rx_dropped; ' + 'cat /sys/class/net/' + ifaceSanitized + '/statistics/rx_errors; ' + - 'cat /sys/class/net/' + ifaceSanitized + '/statistics/rx_dropped; ' + + 'cat /sys/class/net/' + ifaceSanitized + '/statistics/tx_dropped; ' + 'cat /sys/class/net/' + ifaceSanitized + '/statistics/tx_errors; '; exec(cmd, function (error, stdout) { if (!error) {