Thierry Escande
2018-05-16 13:28:37 UTC
The 'index' variable was not incremented ending with only the last cpu
frequency saved in $frequencies_backup0.
Signed-off-by: Thierry Escande <***@linaro.org>
---
include/functions.sh | 1 +
1 file changed, 1 insertion(+)
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
}
frequency saved in $frequencies_backup0.
Signed-off-by: Thierry Escande <***@linaro.org>
---
include/functions.sh | 1 +
1 file changed, 1 insertion(+)
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
}
--
2.14.1
2.14.1