mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
Add logs and block for templates
This commit is contained in:
parent
55e93a9087
commit
5960e94da5
35 changed files with 183 additions and 29 deletions
|
@ -436,7 +436,7 @@ class wvmConnect(object):
|
|||
for name in self.get_instances():
|
||||
dom = self.get_instance(name)
|
||||
mem = util.get_xml_path(dom.XMLDesc(0), "/domain/currentMemory")
|
||||
mem = int(mem) * 1024
|
||||
mem = int(mem) / 1024
|
||||
cur_vcpu = util.get_xml_path(dom.XMLDesc(0), "/domain/vcpu/@current")
|
||||
if cur_vcpu:
|
||||
vcpu = cur_vcpu
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue