fix DiskIOCountersStat.iotime on linux
This commit is contained in:
parent
9e3563f8ca
commit
e8c96ea07d
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue