summaryrefslogtreecommitdiffstats
path: root/libvir.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2006-03-29 13:33:37 +0000
committerDaniel Veillard <veillard@redhat.com>2006-03-29 13:33:37 +0000
commit506fb7d8868efb4eb24b003b42cce14f9a0b8847 (patch)
tree4aabd4da6e9e3503943fca4386be4677031eddaa /libvir.c
parent300aa2d3f92c981cd8df9ccc0546b93251d796cf (diff)
downloadlibvirt-python-split-506fb7d8868efb4eb24b003b42cce14f9a0b8847.tar.gz
libvirt-python-split-506fb7d8868efb4eb24b003b42cce14f9a0b8847.tar.xz
libvirt-python-split-506fb7d8868efb4eb24b003b42cce14f9a0b8847.zip
* python/libvir.c: fixed a bug in the new wrapperv0.1.1v0.1.0
* python/tests/Makefile.am python/tests/node.py: added a new test for the new API * python/tests/create.py: remove a debug Daniel
Diffstat (limited to 'libvir.c')
-rw-r--r--libvir.c4
1 files changed, 2 insertions, 2 deletions
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));