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

View File

@ -695,7 +695,7 @@ def set_performance():
turbo(True) turbo(True)
# set turbo state based on average of all core temperatures # 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( print(
"Optimal total CPU usage:", "Optimal total CPU usage:",
cpuload, cpuload,
@ -718,7 +718,7 @@ def set_performance():
turbo(True) turbo(True)
# set turbo state based on average of all core temperatures # 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( print(
"Optimal total CPU usage:", "Optimal total CPU usage:",
cpuload, cpuload,
@ -741,7 +741,7 @@ def set_performance():
turbo(True) turbo(True)
# set turbo state based on average of all core temperatures # 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( print(
"Optimal total CPU usage:", "Optimal total CPU usage:",
cpuload, cpuload,