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

network_io_counters not parsing /proc/net/dev properly if no space after interface name #263

Closed
giampaolo opened this issue May 23, 2014 · 2 comments

Comments

@giampaolo
Copy link
Owner

From xer...@theelitist.net on May 06, 2012 05:01:02

What steps will reproduce the problem?  
1. Have server with no space after interface name in /proc/net/dev output
2. Run get_io_counters(pernic = True)
3. Output will have nic names like eth0:4046496815 and values will be off 

What version of psutil are you using? What Python version?  
Python 2.7, psutil 0.4.1 

On what operating system? Is it 32bit or 64bit version?  
Debian 6.0.4, 64bit

Example /proc/net/dev output:

xeross@content:~$ 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: 9477513   53050    0    0    0     0          0         0  9477513   
53050    0    0    0     0       0          0
  eth0:4046496815 27661328    0    0    0     0          0         0 
61800195044 32419766    0    0    0     0       0          0

Original issue: http://code.google.com/p/psutil/issues/detail?id=263

@giampaolo
Copy link
Owner Author

From g.rodola on May 06, 2012 12:58:37

This looks like a duplicate of issue 248 which is already fixed in the 
development trunk.

@giampaolo
Copy link
Owner Author

From g.rodola on May 09, 2012 10:29:45

Status: Duplicate
Mergedinto: 248

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

No branches or pull requests

1 participant