mirror of
https://github.com/TheCommsChannel/TC2-BBS-mesh.git
synced 2025-03-05 20:51:53 -08:00
Added total ram
This commit is contained in:
parent
90730ba1ba
commit
3bf27a30d9
|
@ -113,8 +113,9 @@ def handle_stats_steps(sender_id, message, step, interface, bbs_nodes):
|
|||
psutil.cpu_percent()
|
||||
time.sleep(0.1)
|
||||
cpu = str(psutil.cpu_percent()/psutil.cpu_count())
|
||||
ram = str(psutil.virtual_memory().percent)
|
||||
response = "CPU: " + cpu + "%\nRAM: " + ram + "%"
|
||||
ramu = str(psutil.virtual_memory().percent)
|
||||
ramt = str(psutil.virtual_memory().total)
|
||||
response = "CPU: " + cpu + "%\nRAM: " + ramu + "% Used of " + ramt
|
||||
send_message(response, sender_id, interface)
|
||||
handle_stats_command(sender_id, interface)
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue