fix for multi core utilisation display stats menu

This commit is contained in:
Blergo 2024-07-02 11:56:01 +01:00
parent dfc8ca6431
commit eabc6b708b

View File

@ -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)