From eabc6b708bc637e4d6880ba9defade748766398a Mon Sep 17 00:00:00 2001 From: Blergo Date: Tue, 2 Jul 2024 11:56:01 +0100 Subject: [PATCH] fix for multi core utilisation display stats menu --- command_handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command_handlers.py b/command_handlers.py index a66c944..bb5cae7 100644 --- a/command_handlers.py +++ b/command_handlers.py @@ -117,7 +117,7 @@ def handle_stats_steps(sender_id, message, step, interface, bbs_nodes): if choice == 1: psutil.cpu_percent() time.sleep(0.1) - cpu = str(psutil.cpu_percent()) + cpu = str(psutil.cpu_percent()/psutil.cpu_count()) response = "CPU: " + cpu + "%" send_message(response, sender_id, interface) handle_stats_command(sender_id, interface)