WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] xm's pincpu has a problem handling the cpu parameter if

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] xm's pincpu has a problem handling the cpu parameter if the cpu number
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Fri, 27 May 2005 10:45:50 +0000
Delivery-date: Fri, 27 May 2005 11:00:42 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] xm's pincpu has a problem handling the cpu parameter if the cpu number, BitKeeper Bot <=