Commit 1326bbbf authored by Stefy Lanza (nextime / spora )'s avatar Stefy Lanza (nextime / spora )

Merge branch 'experimental'

parents acfb9c78 1fe9335f
...@@ -3225,8 +3225,8 @@ class TimingTracker: ...@@ -3225,8 +3225,8 @@ class TimingTracker:
load_factor = 1.0 load_factor = 1.0
try: try:
# CPU load # CPU load - get average across all CPUs (not per-CPU)
cpu_percent = psutil.cpu_percent(interval=0.5) cpu_percent = psutil.cpu_percent(interval=0.5, percpu=False)
if cpu_percent > 80: if cpu_percent > 80:
load_factor += 0.5 # 50% slower if CPU is heavily loaded load_factor += 0.5 # 50% slower if CPU is heavily loaded
elif cpu_percent > 50: elif cpu_percent > 50:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment