]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix a JSON CPU information bug.
authorChris Lalancette <clalance@redhat.com>
Wed, 10 Mar 2010 18:22:02 +0000 (13:22 -0500)
committerChris Lalancette <clalance@redhat.com>
Thu, 11 Mar 2010 15:39:18 +0000 (10:39 -0500)
commited3d86c9a9d90f2e381c23f5c95391dbe185bc85
treea64eee354824add35e522e76f2fb7c68922a4b95
parente29439bd14ef2a28bc9b15e1c17faf7a12b1afc4
Fix a JSON CPU information bug.

When using the JSON monitor, qemuMonitorJSONExtractCPUInfo
was returning 0 on success.  Unfortunately, higher levels of
the cpuinfo code expect that it returns the number of CPUs
it found on success.  This one-line patch fixes it so that
it returns the correct number.  This makes "virsh vcpuinfo <domain>"
work when using the JSON monitor.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
src/qemu/qemu_monitor_json.c