diff --git a/CHANGELOG.md b/CHANGELOG.md index aeb2cbf..d6e5a92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page. | 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.22.7 | 2020-03-08 | `diskLayout()` fixed linux | | 4.22.6 | 2020-03-08 | `network()` fixed DHCP linux| diff --git a/docs/history.html b/docs/history.html index 90e6693..91d8124 100644 --- a/docs/history.html +++ b/docs/history.html @@ -83,6 +83,11 @@ + + 4.23.1 + 2020-03-11 + diskLayout() optimized detection (linux) + 4.23.0 2020-03-08 diff --git a/docs/index.html b/docs/index.html index 60d79e7..5f3561e 100644 --- a/docs/index.html +++ b/docs/index.html @@ -168,7 +168,7 @@
systeminformation
-
Current Version: 4.23.0
+
Current Version: 4.23.1
@@ -207,7 +207,7 @@
Downloads last month
-
251
+
255
Dependends
diff --git a/lib/filesystem.js b/lib/filesystem.js index f64c513..19ff183 100755 --- a/lib/filesystem.js +++ b/lib/filesystem.js @@ -747,7 +747,7 @@ function diskLayout(callback) { try { const outJSON = JSON.parse(out); 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) { // fallback to older version of lsblk