Commit 8ba39c97 authored by Aurélien Dunand's avatar Aurélien Dunand
Browse files

Fix mem tag to really return total mem value

Previous versions of psutil (really old ones, <0.3.0) didn't have such
information, but we now run cc-node on host with lib updated, so we can
retrieve the total memory value when possible, without excluding caches
and buffers.
parent 5be47072
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@ def mem():
        return unicode(psutil.avail_phymem() + psutil.used_phymem())
    else:
        memory = psutil.virtual_memory()
        return unicode(memory.available + memory.used)
        return unicode(memory.total)


@ttl(5)