[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] xm's pincpu has a problem handling the cpu parameter if the cpu number
ChangeSet 1.1574, 2005/05/27 11:45:50+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx 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@xxxxxxxxx> main.py | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -Nru a/tools/python/xen/xm/main.py b/tools/python/xen/xm/main.py --- a/tools/python/xen/xm/main.py 2005-05-27 07:01:25 -04:00 +++ b/tools/python/xen/xm/main.py 2005-05-27 07:01:25 -04:00 @@ -512,7 +512,7 @@ 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)) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |