bitkeeper revision 1.1574 (4296fa5erB8OK0RVQ0VDZFNWsbl4Qg)

xm's pincpu has a problem handling the cpu parameter if the cpu number
is more than one digit. This patch fixes it.
Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2005-05-27 10:45:50 +00:00
1 parent 3acd35a031
commit 7b97cafdde
1 file changed
+1 -1
+1 -1
View File
@@ -512,7 +512,7 @@ class ProgPincpu(Prog):
cpus = []
cpumap = 0
for c in cpulist.split(','):
if len(c) > 1:
if c.find('-') != -1:
(x,y) = c.split('-')
for i in range(int(x),int(y)+1):
cpus.append(int(i))
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.