mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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:
1 parent
3acd35a031
commit
7b97cafdde
1 file changed
+1
-1
@@ -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))
|
||||
|
||||