Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not parse /proc/net/dev correctly on Centos 5 systems #377

Closed
danielnelson opened this issue May 25, 2017 · 3 comments
Closed

Does not parse /proc/net/dev correctly on Centos 5 systems #377

danielnelson opened this issue May 25, 2017 · 3 comments

Comments

@danielnelson
Copy link
Contributor

On Centos 5 systems a minor difference in the /proc/net/dev file is causing it to not be parsed fully.

Thanks to the research of @Fiery-Fenix I traced it back to #317. To add support for interface aliases, we began parsing until ": ", but on Centos 5 there is no space. I think a suitable fix would be to parse until the last index of ":".

[root@hostA ~]# cat /proc/net/dev
Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
    lo:32108095  555355    0    0    0     0          0         0 32108095  555355    0    0    0     0       0          0
  eth0:5019464820 14784542    0    0    0     0          0     34733 8907551793 12498214    0    0    0     0       0          0
@danielnelson
Copy link
Contributor Author

I can work on a fix.

@danielnelson
Copy link
Contributor Author

Nevermind you already fixed this in #357.

@shirou
Copy link
Owner

shirou commented May 26, 2017

Roger.

Thanks @ablagoev. Your information and PR save the people.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants