memLayout() code cleanup
This commit is contained in:
parent
31a86f0888
commit
beb86acecc
@ -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) |
|
||||
|
||||
@ -83,6 +83,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<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>
|
||||
<th scope="row">4.22.2</th>
|
||||
<td>2020-02-19</td>
|
||||
|
||||
@ -168,7 +168,7 @@
|
||||
<img class="logo" src="assets/logo.png">
|
||||
<div class="title">systeminformation</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>
|
||||
</div>
|
||||
<div class="down">
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user