From 33196e47978d200f47bee744f320390e88e1b8db Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Tue, 15 Oct 2019 22:32:11 +0200 Subject: [PATCH] networkConnections() fixed parsing (linux) --- CHANGELOG.md | 3 ++- README.md | 2 +- docs/history.html | 5 +++++ docs/index.html | 2 +- lib/network.js | 2 +- 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7363a38..b546199 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,7 +30,8 @@ For major (breaking) changes - version 3 and 2 see end of page. | Version | Date | Comment | | -------------- | -------------- | -------- | -| 4.14.12 | 2019-10-14 | getCpu() fixed multi socket detection (linux) | +| 4.14.13 | 2019-10-15 | `networkConnections()` fixed parsing (linux) | +| 4.14.12 | 2019-10-14 | `getCpu()` fixed multi socket detection (linux) | | 4.14.11 | 2019-10-01 | type definitions fix dockerInfo | | 4.14.10 | 2019-10-01 | type definitions fix memLayout | | 4.14.9 | 2019-10-01 | `processLoad()` fix windows | diff --git a/README.md b/README.md index 90e52ac..403315b 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ [![Caretaker][caretaker-image]][caretaker-url] [![MIT license][license-img]][license-url] -This is amazing. Started as a small projekt just for myself, it now has > 9,000 lines of code, > 200 versions published, up to 150,000 downloads per month, > 1 Mio downloads overall. Thank you to all who contributed to this project! +This is amazing. Started as a small projekt just for myself, it now has > 9,000 lines of code, > 250 versions published, up to 200,000 downloads per month, > 1 Mio downloads overall. Thank you to all who contributed to this project! ## New Version 4.0 diff --git a/docs/history.html b/docs/history.html index 75eb7e6..6a95eac 100644 --- a/docs/history.html +++ b/docs/history.html @@ -83,6 +83,11 @@ + + 4.14.13 + 2019-10-15 + networkConnections() fixed parsing (linux) + 4.14.12 2019-10-14 diff --git a/docs/index.html b/docs/index.html index a2edab7..a09e6bb 100644 --- a/docs/index.html +++ b/docs/index.html @@ -168,7 +168,7 @@
systeminformation
-
Current Version: 4.14.12
+
Current Version: 4.14.13
diff --git a/lib/network.js b/lib/network.js index 457fc16..eb073f1 100644 --- a/lib/network.js +++ b/lib/network.js @@ -785,7 +785,7 @@ function networkConnections(callback) { let lines = stdout.toString().split('\n'); lines.forEach(function (line) { line = line.replace(/ +/g, ' ').split(' '); - if (line.length >= 6) { + if (line.length >= 7) { let localip = line[3]; let localport = ''; let localaddress = line[3].split(':');