one decimal place

This commit is contained in:
Cassiano Aquino 2019-10-24 20:35:30 +01:00
parent 0c176ca308
commit f8f6608968
No known key found for this signature in database
GPG Key ID: 2480258091054B09

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