diff options
| -rw-r--r-- | temp_throttle.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/temp_throttle.sh b/temp_throttle.sh index 747c079..a251765 100644 --- a/temp_throttle.sh +++ b/temp_throttle.sh @@ -23,7 +23,9 @@ echo -e "Number of CPU cores detected: $CORES\n" MAX_TEMP=${MAX_TEMP}000 LOW_TEMP=${LOW_TEMP}000 +# FREQ_LIST is a list (array) of all available cpu frequencies the system allows. declare -a FREQ_LIST=($(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies)) +# CURRENT_FREQ relates to the FREQ_LIST by keeping record of the currently set frequency. let CURRENT_FREQ=1 function set_freq { |
