diff options
| author | Sepero <cowpie2000@hotmail.com> | 2013-02-02 10:47:17 -0500 |
|---|---|---|
| committer | Sepero <cowpie2000@hotmail.com> | 2013-02-02 10:47:17 -0500 |
| commit | f0ceb7a75eb7eaa14f9e277f403aea13641aa976 (patch) | |
| tree | 0b534466e1fa55c306e72d129ae4db611ba1c2c0 | |
| parent | 5c3b70db03fb7196596ddf2ab4af86023c915754 (diff) | |
Inserted comments for FREQ_LIST and CURRENT_FREQ
Inserted comment descriptions of variables FREQ_LIST and CURRENT_FREQ
| -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 { |
