Merge pull request #285 from sparrc/patch-1

Fix /proc/net/dev dropOut and fifoOut indices
This commit is contained in:
shirou 2016-12-02 22:28:38 +09:00 committed by GitHub
commit 449c8250b0
1 changed files with 2 additions and 2 deletions

View File

@ -79,11 +79,11 @@ func IOCountersByFile(pernic bool, filename string) ([]IOCountersStat, error) {
if err != nil { if err != nil {
return ret, err return ret, err
} }
dropOut, err := strconv.ParseUint(fields[13], 10, 64) dropOut, err := strconv.ParseUint(fields[11], 10, 64)
if err != nil { if err != nil {
return ret, err return ret, err
} }
fifoOut, err := strconv.ParseUint(fields[14], 10, 64) fifoOut, err := strconv.ParseUint(fields[12], 10, 64)
if err != nil { if err != nil {
return ret, err return ret, err
} }