one decimal place

This commit is contained in:
Cassiano Aquino
2019-10-24 20:35:30 +01:00
parent 0c176ca308
commit f8f6608968

View File

@ -73,7 +73,7 @@ def mem_usage():
if line.startswith("Cached:"):
kb_main_cached = int(line.split()[1])
kb_mem_used = kb_mem_total - kb_mem_free - kb_main_cached - kb_main_buffers
return round(kb_mem_used/kb_mem_total,2)
return round(kb_mem_used/kb_mem_total,1)
return 0