aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Escande <thierry.escande@linaro.org>2018-05-16 15:28:37 +0200
committerLisa Nguyen <lisa.nguyen@linaro.org>2018-05-17 11:27:27 -0700
commita58cac50d731476e9d3607ea1b78119c99dbc6da (patch)
tree0c9b068ccfc97dba6be5ea4e2102673a5aa8ca6a
parentc9a74a0a021452bb72f2354608bc1f130d07e908 (diff)
functions: fix loop increment in save_frequencies()
The 'index' variable was not incremented ending with only the last cpu frequency saved in $frequencies_backup0. Signed-off-by: Thierry Escande <thierry.escande@linaro.org>
-rw-r--r--include/functions.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/functions.sh b/include/functions.sh
index 0105776..e9f66d1 100644
--- a/include/functions.sh
+++ b/include/functions.sh
@@ -403,6 +403,7 @@ save_frequencies() {
freq_value=$(cat $CPU_PATH/$cpu/cpufreq/scaling_cur_freq)
eval $freq_array$index=$freq_value
eval export $freq_array$index
+ index=$((index + 1))
done
}