Added support to alias interfaces (e.g., ifname0:1)

This commit is contained in:
Peter De Cleyn 2017-02-21 08:19:22 +01:00
parent 35c783ec7d
commit e8fc31359b
1 changed files with 1 additions and 1 deletions

View File

@ -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
}