mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
details: Fix reporting current VM cpus
This commit is contained in:
parent
79196cdfcf
commit
a991c21d08
@ -1036,7 +1036,7 @@ class vmmDomain(vmmLibvirtObject):
|
|||||||
return int(self.get_xmlobj().maxmemory)
|
return int(self.get_xmlobj().maxmemory)
|
||||||
|
|
||||||
def vcpu_count(self):
|
def vcpu_count(self):
|
||||||
return int(self.get_xmlobj().vcpus)
|
return int(self.get_xmlobj().curvcpus)
|
||||||
def vcpu_max_count(self):
|
def vcpu_max_count(self):
|
||||||
guest = self.get_xmlobj()
|
guest = self.get_xmlobj()
|
||||||
has_xml_max = (guest.curvcpus != guest.vcpus)
|
has_xml_max = (guest.curvcpus != guest.vcpus)
|
||||||
|
Loading…
Reference in New Issue
Block a user