|
|
@ -54,6 +54,7 @@ func DiskIOCounters() (map[string]DiskIOCountersStat, error) {
|
|
|
|
writes := mustParseUint64(fields[7])
|
|
|
|
writes := mustParseUint64(fields[7])
|
|
|
|
wbytes := mustParseUint64(fields[9])
|
|
|
|
wbytes := mustParseUint64(fields[9])
|
|
|
|
wtime := mustParseUint64(fields[10])
|
|
|
|
wtime := mustParseUint64(fields[10])
|
|
|
|
|
|
|
|
iotime := mustParseUint64(fields[13])
|
|
|
|
d := DiskIOCountersStat{
|
|
|
|
d := DiskIOCountersStat{
|
|
|
|
ReadBytes: rbytes * SectorSize,
|
|
|
|
ReadBytes: rbytes * SectorSize,
|
|
|
|
WriteBytes: wbytes * SectorSize,
|
|
|
|
WriteBytes: wbytes * SectorSize,
|
|
|
@ -61,6 +62,7 @@ func DiskIOCounters() (map[string]DiskIOCountersStat, error) {
|
|
|
|
WriteCount: writes,
|
|
|
|
WriteCount: writes,
|
|
|
|
ReadTime: rtime,
|
|
|
|
ReadTime: rtime,
|
|
|
|
WriteTime: wtime,
|
|
|
|
WriteTime: wtime,
|
|
|
|
|
|
|
|
IoTime: iotime,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if d == empty {
|
|
|
|
if d == empty {
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|