Fix /proc/net/dev dropOut and fifoOut indices

fixes #284
This commit is contained in:
Cameron Sparr 2016-12-01 21:25:38 +00:00 committed by GitHub
parent 061b699a97
commit d74d84e593
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 {
return ret, err
}
dropOut, err := strconv.ParseUint(fields[13], 10, 64)
dropOut, err := strconv.ParseUint(fields[11], 10, 64)
if err != nil {
return ret, err
}
fifoOut, err := strconv.ParseUint(fields[14], 10, 64)
fifoOut, err := strconv.ParseUint(fields[12], 10, 64)
if err != nil {
return ret, err
}