memLayout() code cleanup

This commit is contained in:
Sebastian Hildebrandt 2020-02-20 13:45:19 +01:00
parent 31a86f0888
commit beb86acecc
4 changed files with 9 additions and 3 deletions

View File

@ -30,7 +30,8 @@ For major (breaking) changes - version 3 and 2 see end of page.
| Version | Date | Comment | | 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.1 | 2020-02-17 | `memLayout()` raspberry PI support |
| 4.22.0 | 2020-02-17 | `services()` added pids (windows) | | 4.22.0 | 2020-02-17 | `services()` added pids (windows) |
| 4.21.3 | 2020-02-16 | `versions()` fixed mysql version (macOS) | | 4.21.3 | 2020-02-16 | `versions()` fixed mysql version (macOS) |

View File

@ -83,6 +83,11 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr>
<th scope="row">4.22.3</th>
<td>2020-02-20</td>
<td><span class="code">memLayout()</span> code cleanup</td>
</tr>
<tr> <tr>
<th scope="row">4.22.2</th> <th scope="row">4.22.2</th>
<td>2020-02-19</td> <td>2020-02-19</td>

View File

@ -168,7 +168,7 @@
<img class="logo" src="assets/logo.png"> <img class="logo" src="assets/logo.png">
<div class="title">systeminformation</div> <div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span></div> <div class="subtitle"><span id="typed"></span></div>
<div class="version">Current Version: <span id="version">4.22.2</span></div> <div class="version">Current Version: <span id="version">4.22.3</span></div>
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button> <button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
</div> </div>
<div class="down"> <div class="down">

View File

@ -359,7 +359,7 @@ function memLayout(callback) {
stdout = execSync('vcgencmd measure_volts sdram_p 2>/dev/null'); stdout = execSync('vcgencmd measure_volts sdram_p 2>/dev/null');
lines = stdout.toString().split('\n'); 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) { if (voltage) {
result[0].voltageConfigured = voltage; result[0].voltageConfigured = voltage;
result[0].voltageMin = voltage; result[0].voltageMin = voltage;