fixed small bug in blockDevices
This commit is contained in:
parent
126a1fb35e
commit
9fd24a8761
@ -89,6 +89,7 @@ Other changes
|
|||||||
|
|
||||||
| Version | Date | Comment |
|
| Version | Date | Comment |
|
||||||
| -------------- | -------------- | -------- |
|
| -------------- | -------------- | -------- |
|
||||||
|
| 3.11.1 | 2016-11-16 | fixed small bug in blockDevices |
|
||||||
| 3.11.0 | 2016-11-15 | blockDevices for OSX and extended blockDevices |
|
| 3.11.0 | 2016-11-15 | blockDevices for OSX and extended blockDevices |
|
||||||
| 3.10.2 | 2016-11-14 | bug fix fsSize on OSX |
|
| 3.10.2 | 2016-11-14 | bug fix fsSize on OSX |
|
||||||
| 3.10.1 | 2016-11-14 | optimization fsStats, disksIO, networkStats |
|
| 3.10.1 | 2016-11-14 | optimization fsStats, disksIO, networkStats |
|
||||||
|
|||||||
@ -73,10 +73,10 @@ exports.fsSize = fsSize;
|
|||||||
// disks
|
// disks
|
||||||
|
|
||||||
function parseBytes(s) {
|
function parseBytes(s) {
|
||||||
return parseInt(s.substr(s.indexOf(' (')+2, s.indexOf(' Bytes)')-10))
|
return parseInt(s.substr(s.indexOf(' (') + 2, s.indexOf(' Bytes)') - 10))
|
||||||
}
|
}
|
||||||
|
|
||||||
function parseDevices (lines) {
|
function parseDevices(lines) {
|
||||||
let devices = [];
|
let devices = [];
|
||||||
let i = 0;
|
let i = 0;
|
||||||
lines.forEach(line => {
|
lines.forEach(line => {
|
||||||
|
|||||||
@ -81,6 +81,7 @@
|
|||||||
// --------------------------------
|
// --------------------------------
|
||||||
//
|
//
|
||||||
// version date comment
|
// version date comment
|
||||||
|
// 3.11.1 2016-11-16 fixed small bug in blockDevices
|
||||||
// 3.11.0 2016-11-15 blockDevices for OSX and extended blockDevices
|
// 3.11.0 2016-11-15 blockDevices for OSX and extended blockDevices
|
||||||
// 3.10.2 2016-11-14 bug fix fsSize on OSX
|
// 3.10.2 2016-11-14 bug fix fsSize on OSX
|
||||||
// 3.10.1 2016-11-14 optimization fsStats, disksIO, networkStats
|
// 3.10.1 2016-11-14 optimization fsStats, disksIO, networkStats
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user