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 10:59:20 -0700 |
commit | a2731a26f8bbe45cdc9af1da72b525865d7caf5b (patch) | |
tree | 8dcca2ea6bc498be06d1ac6ba3bd41607aa1c3c6 | |
parent | c3ef1f7f20fe43d4dfae5791b3ab897a9a117154 (diff) | |
download | pm-qa-a2731a26f8bbe45cdc9af1da72b525865d7caf5b.tar.gz |
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 } |