mirror of
https://github.com/AdnanHodzic/auto-cpufreq.git
synced 2025-07-23 21:55:09 +02:00
Remove redundant conditionals in set_performance (#253)
This commit is contained in:
parent
18571e597c
commit
fe88eaf02e
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user