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

Error while setting affinity on Windows #294

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

Error while setting affinity on Windows #294

giampaolo opened this issue May 23, 2014 · 2 comments

Comments

@giampaolo
Copy link
Owner

From [email protected] on June 29, 2012 07:31:43

What steps will reproduce the problem?  
import os, psutil
p = psutil.Process(os.getpid())
p.get_cpu_affinity()
result: [0, 1, 2, 3]
p.set_cpu_affinity([2, 3])
p.get_cpu_affinity() 

What is the expected output?  
[2, 3] 

What do you see instead?  
[0] 

What version of psutil are you using? What Python version?  
0.5
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32 

On what operating system? Is it 32bit or 64bit version?  
Win 7 x64 SP1

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

@giampaolo
Copy link
Owner Author

From g.rodola on June 29, 2012 05:39:45

This is probably one of the silliest mistakes I've ever made before releasing.
There was an hard coded "1" in the the function call and the actual CPU mask 
was ignored. Probably a leftover of when I was conducting God knows what tests 
which wasn't covered by unittests.
I'll release a 0.5.1 version including this fix soon, probably later today (argh!!!).

Status: FixedInSVN
Labels: -Priority-Medium Priority-High Milestone-0.5.1 OpSys-Windows

@giampaolo
Copy link
Owner Author

From g.rodola on June 29, 2012 09:47:06

Ok, I've just released a new 0.5.1 version.
Closing out as fixed.

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