author | Florian Forster <octo@huhu.verplant.org> | |
Sat, 19 Mar 2011 14:43:41 +0000 (15:43 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Sat, 19 Mar 2011 14:43:41 +0000 (15:43 +0100) | ||
commit | 15a21f242308218de9f171123ab7023dd20a1df6 | |
tree | f401f816297dceac17fc71a1dbe56e6a34c04530 | tree | snapshot |
parent | f9451f7f6e794e7f42ef8f4b1c5551537b848272 | commit | diff |
libvirt plugin: Correctly check the status code of virDomainGetVcpus().
The status code is less than zero on failure and the number of vCPUs
otherwise. Thanks to "JLPC" for pointing this problem out.
The status code is less than zero on failure and the number of vCPUs
otherwise. Thanks to "JLPC" for pointing this problem out.
src/libvirt.c | diff | blob | history |