Disable turbo when config is "never" (#255)

This commit is contained in:
Federico Poli 2021-10-17 16:29:16 +02:00 committed by GitHub
parent b652cde3d4
commit 18571e597c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -470,7 +470,7 @@ def set_powersave():
elif auto == "never":
print("Configuration file disables turbo boost")
print("setting turbo boost: off")
turbo(True)
turbo(False)
else:
if psutil.cpu_percent(percpu=False, interval=0.01) >= 30.0 or isclose(
max(psutil.cpu_percent(percpu=True, interval=0.01)), 100