vmolsa / psutil

Automatically exported from code.google.com/p/psutil
Other
0 stars 0 forks source link

network_io_counters wrap around after 4 GiB #460

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 reported on code.google.com by delan@azabani.com on 25 Dec 2013 at 3:34

GoogleCodeExporter commented 9 years ago

Original comment by g.rodola on 9 Mar 2014 at 10:30

GoogleCodeExporter commented 9 years ago
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)

Original comment by g.rodola on 30 Apr 2014 at 1:42

GoogleCodeExporter commented 9 years ago

Original comment by g.rodola on 13 May 2014 at 2:42