Merge pull request #317 from pdcleyn/support-alias-interfaces

Added support to alias interfaces (e.g., ifname0:1)
pull/319/head
shirou 8 years ago committed by GitHub
commit 654255b974

@ -37,7 +37,7 @@ func IOCountersByFile(pernic bool, filename string) ([]IOCountersStat, error) {
ret := make([]IOCountersStat, 0, statlen)
for _, line := range lines[2:] {
parts := strings.SplitN(line, ":", 2)
parts := strings.SplitN(line, ": ", 2)
if len(parts) != 2 {
continue
}

Loading…
Cancel
Save