# python
Python 2.7.3 (default, Mar 14 2014, 17:55:54)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import psutil
>>> psutil.virtual_memory
<function virtual_memory at 0xb672eaf0>
>>> psutil.virtual_memory()
svmem(total=2121965568, available=287584256, percent=86.4, used=1802752000, free=101380096, active=599625728, inactive=145252352, buffers=31662080, cached=186171392, shared=299008)
>>> psutil.virtual_memory().percent
86.4
If you forward it as another JSON tag, you could get rid of the calculations in "app_dashboard_helper.py"
total_memory = node['memory']['available'] + node['memory']['used']
memory_usage = round(100.0 * node['memory']['used'] /
total_memory, 1)
Best Regards
Christian