anfedorov / psutil

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

network_io_counters(pernic) no longer works as intended in 1.0.0 #405

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Make a call to network_io_counters(True)
2. Observe that the pernic option is not honoured

What is the expected output?
Even though the API is deprecated, pernic should work as intended.

What do you see instead?
Results are given for all nics combined.

What version of psutil are you using? What Python version?
psutil 1.0.0, python 2.7

On what operating system? Is it 32bit or 64bit version?
64-bit Debian 7, psutil installed from PyPi

Please provide any additional information below.
https://code.google.com/p/psutil/source/diff?spec=svn2a2d190434fcee74cdaf2288d5b
905f092902af4&r=a025c656b0bfefdca7fad9e0c542a911e97d8cea&format=side&path=/psuti
l/__init__.py is the offending diff.

When the network_io_counters alias was added, the pernic option was not passed 
to net_io_counters.  This is a major API breaking change for what should have 
been a fairly seamless API cleanup.

Original issue reported on code.google.com by cjm...@gmail.com on 12 Jul 2013 at 2:26

GoogleCodeExporter commented 8 years ago
Shit! Will release a bigfix release soon.

Original comment by g.rodola on 12 Jul 2013 at 3:27

GoogleCodeExporter commented 8 years ago
I released a new 1.0.1 version just now. Thanks for signaling this.

Original comment by g.rodola on 12 Jul 2013 at 4:09