From eb14641d140a557ef859663020c56aa2f6c5b9d5 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Mon, 11 Jul 2022 13:59:10 +0200 Subject: [PATCH] fsSize() fix issues filtering (linux) --- CHANGELOG.md | 1 + docs/history.html | 5 +++++ docs/index.html | 2 +- lib/filesystem.js | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 861df73..29922d5 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.25 | 2022-07-11 | `fsSize()` fix iussue filtering (linux) | | 5.11.24 | 2022-07-10 | `fsSize()` fix parsing linux (df) | | 5.11.23 | 2022-07-09 | `fsSize()` fixes (linux), `baseboard()` fix (windows), `cpuTemperatur()` fix linux | | 5.11.22 | 2022-06-24 | `processes()` improved parsing (linux, mac OS) | diff --git a/docs/history.html b/docs/history.html index abcdf44..44b51b3 100644 --- a/docs/history.html +++ b/docs/history.html @@ -57,6 +57,11 @@ + + 5.11.25 + 2022-07-11 + fsSize() fix issue filtering (df) + 5.11.24 2022-07-10 diff --git a/docs/index.html b/docs/index.html index aada24b..0ef9104 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.11.24
+
New Version: 5.11.25
diff --git a/lib/filesystem.js b/lib/filesystem.js index 02fb3ec..8359046 100644 --- a/lib/filesystem.js +++ b/lib/filesystem.js @@ -63,7 +63,7 @@ function fsSize(callback) { if (stdout.toString().toLowerCase().indexOf('filesystem')) { let removeLines = 0; for (let i = 0; i < lines.length; i++) { - if (line[i] && lines[i].toLowerCase().startsWith('filesystem')) { + if (lines[i] && lines[i].toLowerCase().startsWith('filesystem')) { removeLines = i; } }