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(pernic) no longer works as intended in 1.0.0 #405

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

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

giampaolo opened this issue May 23, 2014 · 2 comments

Comments

@giampaolo
Copy link
Owner

From cjm...@gmail.com on July 12, 2013 16:26:28

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=svn2a2d190434fcee74cdaf2288d5b905f092902af4&r=a025c656b0bfefdca7fad9e0c542a911e97d8cea&format=side&path=/psutil/__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: http://code.google.com/p/psutil/issues/detail?id=405

@giampaolo
Copy link
Owner Author

From g.rodola on July 12, 2013 08:27:07

Shit! Will release a bigfix release soon.

@giampaolo
Copy link
Owner Author

From g.rodola on July 12, 2013 09:09:01

I released a new 1.0.1 version just now. Thanks for signaling this.

Status: Fixed
Labels: Milestone-1.0.1

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