diff options
author | Thierry Escande <thierry.escande@linaro.org> | 2018-05-16 15:28:37 +0200 |
---|---|---|
committer | Lisa Nguyen <lisa.nguyen@linaro.org> | 2018-05-17 11:27:27 -0700 |
commit | a58cac50d731476e9d3607ea1b78119c99dbc6da (patch) | |
tree | 0c9b068ccfc97dba6be5ea4e2102673a5aa8ca6a | |
parent | c9a74a0a021452bb72f2354608bc1f130d07e908 (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.sh | 1 |
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 } |