diskLayout() optimized detection linux
This commit is contained in:
parent
cd972d01cd
commit
055b673267
@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
|
|||||||
|
|
||||||
| Version | Date | Comment |
|
| Version | Date | Comment |
|
||||||
| -------------- | -------------- | -------- |
|
| -------------- | -------------- | -------- |
|
||||||
|
| 4.23.1 | 2020-03-11 | `diskLayout()` optimized detection linux |
|
||||||
| 4.23.0 | 2020-03-08 | `versions()` added param to specify which program/lib versions to detect |
|
| 4.23.0 | 2020-03-08 | `versions()` added param to specify which program/lib versions to detect |
|
||||||
| 4.22.7 | 2020-03-08 | `diskLayout()` fixed linux |
|
| 4.22.7 | 2020-03-08 | `diskLayout()` fixed linux |
|
||||||
| 4.22.6 | 2020-03-08 | `network()` fixed DHCP linux|
|
| 4.22.6 | 2020-03-08 | `network()` fixed DHCP linux|
|
||||||
|
|||||||
@ -83,6 +83,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">4.23.1</th>
|
||||||
|
<td>2020-03-11</td>
|
||||||
|
<td><span class="code">diskLayout()</span> optimized detection (linux)</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">4.23.0</th>
|
<th scope="row">4.23.0</th>
|
||||||
<td>2020-03-08</td>
|
<td>2020-03-08</td>
|
||||||
|
|||||||
@ -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.23.0</span></div>
|
<div class="version">Current Version: <span id="version">4.23.1</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">
|
||||||
@ -207,7 +207,7 @@
|
|||||||
<div class="title">Downloads last month</div>
|
<div class="title">Downloads last month</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
|
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
|
||||||
<div class="numbers">251</div>
|
<div class="numbers">255</div>
|
||||||
<div class="title">Dependends</div>
|
<div class="title">Dependends</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -747,7 +747,7 @@ function diskLayout(callback) {
|
|||||||
try {
|
try {
|
||||||
const outJSON = JSON.parse(out);
|
const outJSON = JSON.parse(out);
|
||||||
if (outJSON && {}.hasOwnProperty.call(outJSON, 'blockdevices')) {
|
if (outJSON && {}.hasOwnProperty.call(outJSON, 'blockdevices')) {
|
||||||
devices = outJSON.blockdevices.filter(item => { return (item.group === 'disk' || item.type === 'disk') && item.size > 0 && (item.model !== null || (item.mountpoint === null && item.label === null && item.fstype === null)); });
|
devices = outJSON.blockdevices.filter(item => { return (item.group === 'disk' || item.type === 'disk') && item.size > 0 && (item.model !== null || (item.mountpoint === null && item.label === null && item.fstype === null && item.parttype === null)); });
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// fallback to older version of lsblk
|
// fallback to older version of lsblk
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user