From aa1c4d14f4cf197051fabfc2c2af7f1ff3aa07fc Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Thu, 22 Aug 2019 12:29:45 +0200 Subject: [PATCH] fsSize() fix windows size as number --- CHANGELOG.md | 1 + docs/history.html | 5 +++++ docs/index.html | 4 ++-- lib/filesystem.js | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d648762..b0f365c 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.14.5 | 2019-08-22 | `fsSize()` fix windows result as number | | 4.14.4 | 2019-07-20 | `verions()` fix pip, pip3 | | 4.14.3 | 2019-07-09 | `system()` sku fix windows | | 4.14.2 | 2019-07-07 | `networkConnections()` pid linux fix NAN | diff --git a/docs/history.html b/docs/history.html index 0bd51d3..ff0ec29 100644 --- a/docs/history.html +++ b/docs/history.html @@ -83,6 +83,11 @@ + + 4.14.5 + 2019-08-22 + fsSize() fix windows size as number + 4.14.4 2019-07-20 diff --git a/docs/index.html b/docs/index.html index 97f785f..1dc6d14 100644 --- a/docs/index.html +++ b/docs/index.html @@ -168,7 +168,7 @@
systeminformation
-
Current Version: 4.14.4
+
Current Version: 4.14.5
@@ -199,7 +199,7 @@
Downloads last month
-
168
+
184
Dependends
diff --git a/lib/filesystem.js b/lib/filesystem.js index af603a5..9ce7d50 100644 --- a/lib/filesystem.js +++ b/lib/filesystem.js @@ -85,7 +85,7 @@ function fsSize(callback) { data.push({ 'fs': line[0], 'type': line[1], - 'size': line[3], + 'size': parseInt(line[3]), 'used': parseInt(line[3]) - parseInt(line[2]), 'use': parseFloat((100.0 * (parseInt(line[3]) - parseInt(line[2]))) / parseInt(line[3])), 'mount': line[0]