Commit aaf181f3 authored by Antoine Millet's avatar Antoine Millet
Browse files

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

parent 8e60f299
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -107,6 +107,9 @@ def cpuuse(dom):
@_vir_tag
def mem(dom):
    """Memory currently allocated."""
    if dom.state == 'stopped':
        return dom.lv_dom.info()[1] * 1024
    else:
        return dom.lv_dom.info()[2] * 1024