From 506fb7d8868efb4eb24b003b42cce14f9a0b8847 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Wed, 29 Mar 2006 13:33:37 +0000 Subject: * python/libvir.c: fixed a bug in the new wrapper * python/tests/Makefile.am python/tests/node.py: added a new test for the new API * python/tests/create.py: remove a debug Daniel --- libvir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libvir.c') diff --git a/libvir.c b/libvir.c index ede3949..786d47a 100644 --- a/libvir.c +++ b/libvir.c @@ -215,8 +215,8 @@ libvirt_virNodeGetInfo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { return(Py_None); } py_retval = PyList_New(8); - PyList_SetItem(py_retval, 0, libvirt_charPtrWrap(&info.model[0])); - PyList_SetItem(py_retval, 1, libvirt_longWrap((long) info.memory)); + PyList_SetItem(py_retval, 0, libvirt_constcharPtrWrap(&info.model[0])); + PyList_SetItem(py_retval, 1, libvirt_longWrap((long) info.memory >> 10)); PyList_SetItem(py_retval, 2, libvirt_intWrap((int) info.cpus)); PyList_SetItem(py_retval, 3, libvirt_intWrap((int) info.mhz)); PyList_SetItem(py_retval, 4, libvirt_intWrap((int) info.nodes)); -- cgit