From f0ceb7a75eb7eaa14f9e277f403aea13641aa976 Mon Sep 17 00:00:00 2001 From: Sepero Date: Sat, 2 Feb 2013 10:47:17 -0500 Subject: Inserted comments for FREQ_LIST and CURRENT_FREQ Inserted comment descriptions of variables FREQ_LIST and CURRENT_FREQ --- temp_throttle.sh | 2 ++ 1 file changed, 2 insertions(+) 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 { -- cgit v1.2.3