diff --git a/CHANGELOG.md b/CHANGELOG.md index ea0be85..3832668 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -94,6 +94,7 @@ Other changes | Version | Date | Comment | | -------------- | -------------- | -------- | +| 3.17.3 | 2017-04-29 | minor fix (blockDevices data array, Windows) | | 3.17.2 | 2017-04-24 | minor fix (removed console.log) | | 3.17.1 | 2017-04-23 | fixed bugs fsSize(win), si.processes (command), si.osinfo(win) | | 3.17.0 | 2017-02-19 | windows support for some first functions, extended process list (linux)| diff --git a/README.md b/README.md index bd26323..21a5921 100644 --- a/README.md +++ b/README.md @@ -400,6 +400,7 @@ Written by Sebastian Hildebrandt [sebhildebrandt](https://github.com/sebhildebra - Quentin Busuttil [Buzut](https://github.com/Buzut) - lapsio [lapsio](https://github.com/lapsio) - csy [csy](https://github.com/csy1983) +- Tiago Roldão [tiagoroldao](https://github.com/tiagoroldao) OSX Temperature: Credits here are going to: diff --git a/lib/filesystem.js b/lib/filesystem.js index b9ed3d0..3d8cdd2 100644 --- a/lib/filesystem.js +++ b/lib/filesystem.js @@ -195,11 +195,11 @@ function blockDevices(callback) { return new Promise((resolve, reject) => { process.nextTick(() => { + let data = []; if (_linux) { // see https://wiki.ubuntuusers.de/lsblk/ // exec("lsblk -bo NAME,TYPE,SIZE,FSTYPE,MOUNTPOINT,UUID,ROTA,RO,TRAN,SERIAL,LABEL,MODEL,OWNER,GROUP,MODE,ALIGNMENT,MIN-IO,OPT-IO,PHY-SEC,LOG-SEC,SCHED,RQ-SIZE,RA,WSAME", function (error, stdout) { exec("lsblk -bPo NAME,TYPE,SIZE,FSTYPE,MOUNTPOINT,UUID,ROTA,RO,RM,TRAN,SERIAL,LABEL,MODEL,OWNER", function (error, stdout) { - let data = []; if (!error) { let lines = blkStdoutToObject(stdout).split('\n'); data = parseBlk(lines); @@ -223,7 +223,6 @@ function blockDevices(callback) { } if (_darwin) { exec("diskutil info -all", function (error, stdout) { - let data = []; if (!error) { let lines = stdout.toString().split('\n'); // parse lines into temp array of devices diff --git a/lib/index.js b/lib/index.js index ef82d2c..74c543c 100644 --- a/lib/index.js +++ b/lib/index.js @@ -82,6 +82,7 @@ // -------------------------------- // // version date comment +// 3.17.3 2017-04-29 minor fix (blockDevices data array, Windows) // 3.17.2 2017-04-24 minor fix (removed console.log) // 3.17.1 2017-04-23 fixed bugs fsSize(win), si.processes (command), si.osinfo(win) // 3.17.0 2017-02-19 windows support for some first functions