From beb86acecc75c243bc4acf20c8146f15622edffd Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Thu, 20 Feb 2020 13:45:19 +0100 Subject: [PATCH] memLayout() code cleanup --- CHANGELOG.md | 3 ++- docs/history.html | 5 +++++ docs/index.html | 2 +- lib/memory.js | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a2e54ef..0ec5560 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.22.2 | 2020-02-20 | `memLayout()` raspberry PI mem voltage fix | +| 4.22.3 | 2020-02-20 | `memLayout()` code cleanup | +| 4.22.2 | 2020-02-19 | `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/docs/history.html b/docs/history.html index 955cb4f..8e360dc 100644 --- a/docs/history.html +++ b/docs/history.html @@ -83,6 +83,11 @@ + + 4.22.3 + 2020-02-20 + memLayout() code cleanup + 4.22.2 2020-02-19 diff --git a/docs/index.html b/docs/index.html index ff6f165..420e5b2 100644 --- a/docs/index.html +++ b/docs/index.html @@ -168,7 +168,7 @@
systeminformation
-
Current Version: 4.22.2
+
Current Version: 4.22.3
diff --git a/lib/memory.js b/lib/memory.js index 19eff2f..88e2f03 100644 --- a/lib/memory.js +++ b/lib/memory.js @@ -359,7 +359,7 @@ function memLayout(callback) { stdout = execSync('vcgencmd measure_volts sdram_p 2>/dev/null'); lines = stdout.toString().split('\n'); - let voltage = parseFloat(util.getValue(lines, 'volt', '=', true), 10) || 0; + let voltage = parseFloat(util.getValue(lines, 'volt', '=', true)) || 0; if (voltage) { result[0].voltageConfigured = voltage; result[0].voltageMin = voltage;