Commit d7662787 authored by Julien Muchembled's avatar Julien Muchembled Committed by Rafael Monnerat

collect: what matters is available memory (contrary to unused memory)

/reviewed-on !143
parent 7e58516e
...@@ -132,8 +132,8 @@ class SystemSnapshot(_Snapshot): ...@@ -132,8 +132,8 @@ class SystemSnapshot(_Snapshot):
memory = psutil.virtual_memory() memory = psutil.virtual_memory()
net_io = psutil.net_io_counters() net_io = psutil.net_io_counters()
self.memory_used = memory.used self.memory_free = available = memory.available
self.memory_free = memory.free self.memory_used = memory.total - available
self.memory_percent = memory.percent self.memory_percent = memory.percent
#self.cpu_percent = psutil.cpu_percent() #self.cpu_percent = psutil.cpu_percent()
self.cpu_percent = load_percent self.cpu_percent = load_percent
......
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