|
|
@ -328,6 +328,10 @@ func IOCounters() (map[string]IOCountersStat, error) {
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return ret, err
|
|
|
|
return ret, err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
weightedIO, err := strconv.ParseUint((fields[13]), 10, 64)
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
|
|
|
return ret, err
|
|
|
|
|
|
|
|
}
|
|
|
|
d := IOCountersStat{
|
|
|
|
d := IOCountersStat{
|
|
|
|
ReadBytes: rbytes * SectorSize,
|
|
|
|
ReadBytes: rbytes * SectorSize,
|
|
|
|
WriteBytes: wbytes * SectorSize,
|
|
|
|
WriteBytes: wbytes * SectorSize,
|
|
|
@ -339,6 +343,7 @@ func IOCounters() (map[string]IOCountersStat, error) {
|
|
|
|
WriteTime: wtime,
|
|
|
|
WriteTime: wtime,
|
|
|
|
IopsInProgress: iopsInProgress,
|
|
|
|
IopsInProgress: iopsInProgress,
|
|
|
|
IoTime: iotime,
|
|
|
|
IoTime: iotime,
|
|
|
|
|
|
|
|
WeightedIO: weightedIO,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if d == empty {
|
|
|
|
if d == empty {
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|