minor fix (blockDevices data array, Windows)

This commit is contained in:
Sebastian Hildebrandt
2017-04-29 14:13:04 +02:00
parent dc1604cb56
commit 4ffe0b91c7
4 changed files with 4 additions and 2 deletions
+1 -2
View File
@@ -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
+1
View File
@@ -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