mounts mirrored usage

This commit is contained in:
Mathew committed 2020-02-21 18:00:58 +01:00
1 parent c991b44e5a
commit 4a3edf5dcc
1 file changed
+1 -1
+1 -1
View File
@@ -9,7 +9,7 @@ ex('df').then(out => {// | grep dev/sd
grep = /\/dev\/(sd[a-z]\d)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+%) (\/\S*)$/gm.exec(drive)
if(grep == null) return
console.log()
console.log(`\x1b[96m${grep[1]}\x1b[0m mounted on \x1b[34m${grep[6]}\x1b[0m \x1b[33m${readable(grep[4], 2)}GB\x1b[0m of ${readable(grep[2], 2)}GB`)
console.log(`\x1b[96m${grep[1]}\x1b[0m mounted on \x1b[34m${grep[6]}\x1b[0m \x1b[33m${readable(grep[3], 2)}GB\x1b[0m of ${readable(grep[2], 2)}GB`)
console.log(bar(grep[4], grep[2], ['\x1b[94m=', '-']))
})
})