From e8c96ea07d1783e59db9eb9a662a7a4ed39ac322 Mon Sep 17 00:00:00 2001 From: Nikolay Sivko Date: Tue, 16 Sep 2014 14:08:52 +0400 Subject: [PATCH] fix DiskIOCountersStat.iotime on linux --- disk_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disk_linux.go b/disk_linux.go index ee67f1e..1e33c5f 100644 --- a/disk_linux.go +++ b/disk_linux.go @@ -54,7 +54,7 @@ func DiskIOCounters() (map[string]DiskIOCountersStat, error) { writes := mustParseUint64(fields[7]) wbytes := mustParseUint64(fields[9]) wtime := mustParseUint64(fields[10]) - iotime := mustParseUint64(fields[13]) + iotime := mustParseUint64(fields[12]) d := DiskIOCountersStat{ ReadBytes: rbytes * SectorSize, WriteBytes: wbytes * SectorSize,