lockDevices() fixed parsing raids (linux)

This commit is contained in:
Sebastian Hildebrandt 2023-02-23 22:54:56 +01:00
parent d81c31ec45
commit a19d0cfcc7
4 changed files with 9 additions and 3 deletions

View File

@ -82,6 +82,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
| Version | Date | Comment |
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
| 5.17.10 | 2023-02-23 | `blockDevices()` fixed parsing raids (linux) |
| 5.17.9 | 2023-02-11 | `system()` fixed model Apple Silicon |
| 5.17.8 | 2023-01-30 | `system()` improved virtual host detection for Parallels |
| 5.17.7 | 2023-01-29 | `processes()` fixed CPU usage info (windows) |

View File

@ -57,6 +57,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">5.17.10</th>
<td>2023-02-23</td>
<td><span class="code">blockDevices()</span> fixed parsing raids (linux)</td>
</tr>
<tr>
<th scope="row">5.17.9</th>
<td>2023-02-11</td>

View File

@ -170,7 +170,7 @@
<img class="logo" src="assets/logo.png" alt="logo">
<div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span>&nbsp;</div>
<div class="version">New Version: <span id="version">5.17.9</span></div>
<div class="version">New Version: <span id="version">5.17.10</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">
@ -212,7 +212,7 @@
<div class="title">Downloads last month</div>
</div>
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
<div class="numbers">592</div>
<div class="numbers">596</div>
<div class="title">Dependents</div>
</div>
</div>

View File

@ -384,7 +384,7 @@ function decodeMdabmData(lines) {
const raid = util.getValue(lines, 'md_level', '=');
const members = [];
lines.forEach(line => {
if (line.toLowerCase().startsWith('md_device_ev') && line.toLowerCase().indexOf('/dev/') > 0) {
if (line.toLowerCase().startsWith('md_device_dev') && line.toLowerCase().indexOf('/dev/') > 0) {
members.push(line.split('/dev/')[1]);
}
});