Correct working of getmemory function

This commit is contained in:
2018-07-17 21:51:49 -04:00
parent 329aa93d81
commit 0fd8ecc019
2 changed files with 8 additions and 8 deletions

View File

@ -231,7 +231,7 @@ class NodeInstance():
for domain, instance in self.s_domain.items():
if instance.inshutdown == False and domain in self.domain_list:
# Add the allocated memory to our memalloc value
memalloc += instance.getmaxmemory()
memalloc += instance.getmemory()
if instance.getstate() == 'start' and instance.gethypervisor() == self.name:
if instance.getdom() != None:
try: