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 wrap around after 4 GiB #460

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

network_io_counters wrap around after 4 GiB #460

giampaolo opened this issue May 23, 2014 · 3 comments

Comments

@giampaolo
Copy link
Owner

From delan@azabani.com on December 25, 2013 16:34:53

What steps will reproduce the problem?  
1. import psutil
2. result = psutil.network_io_counters()
3. Use the values result.bytes_sent, result.bytes_recv, etc. 

What is the expected output?  
Network I/O counters that monotonically increase. 

What do you see instead?  
Network I/O counters that reset to zero every 4 GiB. 

What version of psutil are you using? What Python version?  
psutil 1.2.1, Python 2.7.5 x86 

On what operating system? Is it 32bit or 64bit version?  
Windows x64 

Please provide any additional information below.  
Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import psutil
>>> psutil.network_io_counters()
iostat(bytes_sent=4287347239L, ...
>>> psutil.network_io_counters()
iostat(bytes_sent=4288453273L, ...
>>> psutil.network_io_counters()
iostat(bytes_sent=2345855, ...
>>> psutil.network_io_counters()
iostat(bytes_sent=4557891, ...

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

@giampaolo
Copy link
Owner Author

From g.rodola on March 09, 2014 15:30:01

Labels: OpSys-Windows

@giampaolo
Copy link
Owner Author

From g.rodola on April 30, 2014 06:42:30

This should be fixed as of revision 2fc1cdf8fba1 .
Can you please verify this? (if you can't compile on Windows then let's just 
wait until I release the exe installers)

Status: FixedInHG
Labels: -Priority-Medium Priority-High Milestone-2.1.1

@giampaolo
Copy link
Owner Author

From g.rodola on May 13, 2014 07:42:26

Status: Fixed

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