diff options
author | Daniel Veillard <veillard@redhat.com> | 2006-03-29 13:33:37 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2006-03-29 13:33:37 +0000 |
commit | 506fb7d8868efb4eb24b003b42cce14f9a0b8847 (patch) | |
tree | 4aabd4da6e9e3503943fca4386be4677031eddaa /libvir.c | |
parent | 300aa2d3f92c981cd8df9ccc0546b93251d796cf (diff) | |
download | libvirt-python-split-506fb7d8868efb4eb24b003b42cce14f9a0b8847.tar.gz libvirt-python-split-506fb7d8868efb4eb24b003b42cce14f9a0b8847.tar.xz libvirt-python-split-506fb7d8868efb4eb24b003b42cce14f9a0b8847.zip |
* 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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)); |