Merge pull request #398 from prometheus/fish-netdev-check-scan-errror

Check for errors in netdev scanner
This commit is contained in:
Johannes 'fish' Ziemke 2017-01-03 16:00:08 +01:00 committed by GitHub
commit d17b1b44a6
1 changed files with 1 additions and 1 deletions

View File

@ -70,5 +70,5 @@ func parseNetDevStats(r io.Reader, ignore *regexp.Regexp) (map[string]map[string
netDev[dev]["transmit_"+v] = parts[i+1+len(header)]
}
}
return netDev, nil
return netDev, scanner.Err()
}