Skip to content

Commit 654255b

Browse files
authored
Merge pull request #317 from pdcleyn/support-alias-interfaces
Added support to alias interfaces (e.g., ifname0:1)
2 parents 35c783e + e8fc313 commit 654255b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/net_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func IOCountersByFile(pernic bool, filename string) ([]IOCountersStat, error) {
3737
ret := make([]IOCountersStat, 0, statlen)
3838

3939
for _, line := range lines[2:] {
40-
parts := strings.SplitN(line, ":", 2)
40+
parts := strings.SplitN(line, ": ", 2)
4141
if len(parts) != 2 {
4242
continue
4343
}

0 commit comments

Comments
 (0)