diff --git a/CHANGELOG.md b/CHANGELOG.md index 510915e..a2e54ef 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.22.2 | 2020-02-20 | `memLayout()` raspberry PI mem voltage fix | | 4.22.1 | 2020-02-17 | `memLayout()` raspberry PI support | | 4.22.0 | 2020-02-17 | `services()` added pids (windows) | | 4.21.3 | 2020-02-16 | `versions()` fixed mysql version (macOS) | diff --git a/README.md b/README.md index 4d3bd8b..5f6d603 100644 --- a/README.md +++ b/README.md @@ -85,13 +85,13 @@ si.cpu() (last 7 major and minor version releases) +- Version 4.22.0: `services()` added pids (windows) - Version 4.21.0: added npx copmpatibility - Version 4.20.0: `battery()` added designcapacity, voltage, unit - Version 4.19.0: `osInfo()` added uefi (OS uses UEFI during startup) - Version 4.18.0: `networkInterfaces()` added dhcp for mac os, added dhcp linux fallback - Version 4.17.0: `networkInterfaces()` added dhcp, dnsSuffix, ieee8021xAuth, ieee8021xState - Version 4.16.0: `networkGatewayDefault()` added -- Version 4.15.0: `cpu()` added governor (linux) - ... You can find all changes here: [detailed changelog][changelog-url] diff --git a/docs/history.html b/docs/history.html index 8568500..955cb4f 100644 --- a/docs/history.html +++ b/docs/history.html @@ -83,6 +83,11 @@ + + 4.22.2 + 2020-02-19 + memLayout() raspberry PI mem voltage fix + 4.22.1 2020-02-17 diff --git a/docs/index.html b/docs/index.html index 95bb7ee..ff6f165 100644 --- a/docs/index.html +++ b/docs/index.html @@ -168,7 +168,7 @@
systeminformation
-
Current Version: 4.22.1
+
Current Version: 4.22.2
diff --git a/lib/memory.js b/lib/memory.js index ace26ac..19eff2f 100644 --- a/lib/memory.js +++ b/lib/memory.js @@ -359,11 +359,11 @@ function memLayout(callback) { stdout = execSync('vcgencmd measure_volts sdram_p 2>/dev/null'); lines = stdout.toString().split('\n'); - let voltage = parseInt(util.getValue(lines, 'sdram_freq', '=', true), 10) || 0; + let voltage = parseFloat(util.getValue(lines, 'volt', '=', true), 10) || 0; if (voltage) { - result.voltageConfigured = voltage; - result.voltageMin = voltage; - result.voltageMax = voltage; + result[0].voltageConfigured = voltage; + result[0].voltageMin = voltage; + result[0].voltageMax = voltage; } } } catch (e) {