You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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!!!).
From [email protected] on June 29, 2012 07:31:43
Original issue: http://code.google.com/p/psutil/issues/detail?id=294
The text was updated successfully, but these errors were encountered: