From 3bf27a30d991419d611223dad8ea2c9a9eb66dce Mon Sep 17 00:00:00 2001 From: Blergo Date: Tue, 2 Jul 2024 18:52:46 +0100 Subject: [PATCH] Added total ram --- command_handlers.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/command_handlers.py b/command_handlers.py index 3fa9869..054e8a8 100644 --- a/command_handlers.py +++ b/command_handlers.py @@ -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