diff --git a/CHANGELOG.md b/CHANGELOG.md index ebb1e86..abcefd4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -80,6 +80,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | -------------- | -------------- | -------- | +| 5.11.18 | 2022-06-13 | `diskLayout()` fix parsing linux (JSON) | | 5.11.17 | 2022-06-13 | `diskLayout()` fix parsing linux (JSON) | | 5.11.16 | 2022-05-30 | `docs` updated, `tests` added node 18 | | 5.11.15 | 2022-05-11 | `audio()` fix typescript typings | diff --git a/docs/history.html b/docs/history.html index 8748e20..6945a9d 100644 --- a/docs/history.html +++ b/docs/history.html @@ -57,6 +57,11 @@ + + 5.11.18 + 2022-06-13 + diskLayout() fix parsing linux (JSON) + 5.11.17 2022-06-13 diff --git a/docs/index.html b/docs/index.html index 06652d6..7de609f 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.11.17
+
New Version: 5.11.18
diff --git a/lib/filesystem.js b/lib/filesystem.js index b246f75..dd478c7 100644 --- a/lib/filesystem.js +++ b/lib/filesystem.js @@ -852,7 +852,7 @@ function diskLayout(callback) { try { const outJSON = JSON.parse(out); if (outJSON && {}.hasOwnProperty.call(outJSON, 'blockdevices')) { - devices = outJSON.blockdevices.filter(item => { return (item.type === 'disk') && item.size > 0 && (item.model !== null || (item.mountpoint === null && item.label === null && item.fstype === null && item.parttype === null)); }); + devices = outJSON.blockdevices.filter(item => { return (item.type === 'disk') && item.size > 0 && (item.model !== null || (item.mountpoint === null && item.label === null && item.fsType === null && item.parttype === null && item.name.indexOf('ram') !== 0)); }); } } catch (e) { // fallback to older version of lsblk