[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] Fix for 20762:a1d0a575b4ba



Hi,

This patch fixes the following error:
  File "usr/lib/python2.4/site-packages/xen/xend/XendNode.py", line 908, in 
physinfo
    info['cpu_mhz'] = info['cpu_khz'] / 1000
TypeError: unsupported operand type(s) for /: 'str' and 'int'

Signed-off-by: KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx>
-- 
  KUWAMURA Shin'ya
# HG changeset patch
# User KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx>
# Date 1262915341 -32400
# Node ID 78fa6d21dd293e0abc0bc0b9be0c22c606db6e56
# Parent  cba56c13ca3eba67a3b56e78256418fd62445a95
Fix for 20762:a1d0a575b4ba

Signed-off-by: KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx>

diff -r cba56c13ca3e -r 78fa6d21dd29 tools/python/xen/lowlevel/xc/xc.c
--- a/tools/python/xen/lowlevel/xc/xc.c Wed Jan 06 12:45:23 2010 +0000
+++ b/tools/python/xen/lowlevel/xc/xc.c Fri Jan 08 10:49:01 2010 +0900
@@ -1149,7 +1149,7 @@ static PyObject *pyxc_physinfo(XcObject 
             nr_nodes++;
     }
 
-    ret_obj = Py_BuildValue("{s:i,s:i,s:i,s:i,s:i,s:l,s:l,s:l,s:i,s:s:s:s}",
+    ret_obj = 
Py_BuildValue("{s:i,s:i,s:i,s:i,s:i,s:i,s:l,s:l,s:l,s:i,s:s:s:s}",
                             "nr_nodes",         nr_nodes,
                             "max_node_id",      info.max_node_id,
                             "max_cpu_id",       info.max_cpu_id,
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.