diff --git a/CHANGELOG.md b/CHANGELOG.md index fd25a0f..1ed0531 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.23.18 | 2024-12-24 | `cpu()` Handle RISC-V CPU Manufacturer and Brand | | 5.23.17 | 2024-12-23 | `wifiConnections()` refactored - Sequoia compatibel (macOS) | | 5.23.16 | 2024-12-22 | `networkConnections()` refactored PID parsing (macOS) | | 5.23.15 | 2024-12-21 | `users()`, `wifiNetworks()` fixed parsing (macOS Seguoia) | diff --git a/docs/history.html b/docs/history.html index b24d46d..5fc51e1 100644 --- a/docs/history.html +++ b/docs/history.html @@ -57,6 +57,12 @@ + + + 5.23.18 + 2024-12-24 + cpu() Handle RISC-V CPU Manufacturer and Brand + 5.23.17 2024-12-23 diff --git a/docs/index.html b/docs/index.html index 70155b9..61b6a15 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.23.17
+
New Version: 5.23.18
diff --git a/lib/network.js b/lib/network.js index 084adb3..a843196 100644 --- a/lib/network.js +++ b/lib/network.js @@ -1544,8 +1544,11 @@ function networkConnections(callback) { processes = processes.map((line => { return line.trim().replace(/ +/g, ' '); })); let lines = stdout.toString().split('\n'); lines.shift(); - const header = lines.shift().replace(/ Address/g, '_Address').replace(/ +/g, ' ').split(' '); - let pidPos = header.indexOf('pid'); + let pidPos = 8; + if (lines.length > 1 && lines[0].indexOf('pid') > 0) { + const header = (lines.shift() || '').replace(/ Address/g, '_Address').replace(/ +/g, ' ').split(' '); + pidPos = header.indexOf('pid'); + } lines.forEach(function (line) { line = line.replace(/ +/g, ' ').split(' '); if (line.length >= 8) {