Skip to content

Commit

Permalink
v9.8
Browse files Browse the repository at this point in the history
- META | DietPi-Survey_report: Add code comment about printf workaround since recent bash update on Debian Trixie and above.
  • Loading branch information
MichaIng committed Oct 8, 2024
1 parent 6ac5576 commit 5d56aab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .meta/dietpi-survey_report
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,7 @@ shopt -s extglob
#aBENCH_RESULT_CPU_MIN[i]=$(printf '%.2f' "${aBENCH_RESULT_CPU_MIN[i]}e-2")
#aBENCH_RESULT_CPU_MAX[i]=$(printf '%.2f' "${aBENCH_RESULT_CPU_MAX[i]}e-2")
#aBENCH_RESULT_CPU_AVG[i]=$(printf '%.2f' "$((${aBENCH_RESULT_CPU_AVG[i]}*10/${aBENCH_CPU_INDEX[i]}+1))e-3")
# - Workaround for current bash printf bug: https://bugs.debian.org/1078556
aBENCH_RESULT_CPU_MIN[i]=$(mawk "{printf \"%.2f\", ${aBENCH_RESULT_CPU_MIN[i]}e-2}" <<< '')
aBENCH_RESULT_CPU_MAX[i]=$(mawk "{printf \"%.2f\", ${aBENCH_RESULT_CPU_MAX[i]}e-2}" <<< '')
aBENCH_RESULT_CPU_AVG[i]=$(mawk "{printf \"%.2f\", $((${aBENCH_RESULT_CPU_AVG[i]}*10/${aBENCH_CPU_INDEX[i]}+1))e-3}" <<< '')
Expand Down

0 comments on commit 5d56aab

Please sign in to comment.