Commit aaf181f3 authored by Antoine Millet's avatar Antoine Millet

Mem tag now return max_mem if vm is stopped instead of 0

parent 8e60f299
......@@ -107,7 +107,10 @@ def cpuuse(dom):
@_vir_tag
def mem(dom):
"""Memory currently allocated."""
return dom.lv_dom.info()[2] * 1024
if dom.state == 'stopped':
return dom.lv_dom.info()[1] * 1024
else:
return dom.lv_dom.info()[2] * 1024
@_vir_tag
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment