MCPcopy
hub / github.com/retspen/webvirtcloud / get_memory

Method get_memory

vrtManager/instance.py:179–181  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

177 return int(cur_vcpu)
178
179 def get_memory(self):
180 mem = util.get_xml_path(self._XMLDesc(0), "/domain/memory")
181 return int(mem) / 1024
182
183 def get_cur_memory(self):
184 mem = util.get_xml_path(self._XMLDesc(0), "/domain/currentMemory")

Callers 1

instanceFunction · 0.80

Calls 1

_XMLDescMethod · 0.95

Tested by

no test coverage detected