From 38ad26166b98ab3a15dc54d6e678dcd8169fac49 Mon Sep 17 00:00:00 2001 From: Blergo Date: Tue, 2 Jul 2024 19:04:51 +0100 Subject: [PATCH] Removed total ram as not reporting correctly. Will revisit in future --- command_handlers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/command_handlers.py b/command_handlers.py index 054e8a8..06aded5 100644 --- a/command_handlers.py +++ b/command_handlers.py @@ -114,8 +114,7 @@ def handle_stats_steps(sender_id, message, step, interface, bbs_nodes): time.sleep(0.1) cpu = str(psutil.cpu_percent()/psutil.cpu_count()) ramu = str(psutil.virtual_memory().percent) - ramt = str(psutil.virtual_memory().total) - response = "CPU: " + cpu + "%\nRAM: " + ramu + "% Used of " + ramt + response = "CPU: " + cpu + "%\nRAM: " + ramu send_message(response, sender_id, interface) handle_stats_command(sender_id, interface) return