Fixed bug where turbo boost will always be on in performance mode (#455)

* Fixed bug where Turbo Boost is always on in performance mode

* Removed debugging prints

* Added new line at EOF
This commit is contained in:
Ben 2022-11-12 06:23:45 +01:00 committed by GitHub
parent 2ae8ed4be2
commit d60642720a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -833,7 +833,7 @@ def set_performance():
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) >= 20.0