fix DiskIOCountersStat.iotime on linux

This commit is contained in:
Nikolay Sivko 2014-09-16 14:08:52 +04:00
parent 9e3563f8ca
commit e8c96ea07d
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +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]) iotime := mustParseUint64(fields[12])
d := DiskIOCountersStat{ d := DiskIOCountersStat{
ReadBytes: rbytes * SectorSize, ReadBytes: rbytes * SectorSize,
WriteBytes: wbytes * SectorSize, WriteBytes: wbytes * SectorSize,