mirror of
https://github.com/TheCommsChannel/TC2-BBS-mesh.git
synced 2025-04-20 07:16:06 -04:00
fix for multi core utilisation display stats menu
This commit is contained in:
parent
dfc8ca6431
commit
eabc6b708b
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user