Remove redundant conditionals in set_performance (#253)

This commit is contained in:
Yustynn Panicker 2021-10-17 22:35:55 +08:00 committed by GitHub
parent 18571e597c
commit fe88eaf02e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -695,7 +695,7 @@ def set_performance():
turbo(True)
# set turbo state based on average of all core temperatures
elif cpuload <= 25 and avg_all_core_temp >= 70:
elif avg_all_core_temp >= 70:
print(
"Optimal total CPU usage:",
cpuload,
@ -718,7 +718,7 @@ def set_performance():
turbo(True)
# set turbo state based on average of all core temperatures
elif cpuload <= 25 and avg_all_core_temp >= 65:
elif avg_all_core_temp >= 65:
print(
"Optimal total CPU usage:",
cpuload,
@ -741,7 +741,7 @@ def set_performance():
turbo(True)
# set turbo state based on average of all core temperatures
elif cpuload <= 25 and avg_all_core_temp >= 60:
elif avg_all_core_temp >= 60:
print(
"Optimal total CPU usage:",
cpuload,