mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-03-12 20:58:28 +03: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)
|
||||
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user