details: Fix reporting current VM cpus

This commit is contained in:
Cole Robinson 2013-10-07 18:12:12 -04:00
parent 79196cdfcf
commit a991c21d08

View File

@ -1036,7 +1036,7 @@ class vmmDomain(vmmLibvirtObject):
return int(self.get_xmlobj().maxmemory)
def vcpu_count(self):
return int(self.get_xmlobj().vcpus)
return int(self.get_xmlobj().curvcpus)
def vcpu_max_count(self):
guest = self.get_xmlobj()
has_xml_max = (guest.curvcpus != guest.vcpus)