Skip to content

Commit

Permalink
Fix rounding of test results pass rate (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackhex authored Oct 17, 2024
1 parent 7b6ba44 commit 06c117d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/toolchain/create-gcc-summary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ print_summary() {
if [[ "$TOTAL" = 0 ]]; then
RELIABILITY_RATE="undefined"
else
RELIABILITY_RATE="$(($TOTAL_EXPECTED * 100 / $TOTAL))%"
RELIABILITY_RATE="$(( (($TOTAL_EXPECTED * 1000) + ($TOTAL * 5)) / ($TOTAL * 10) ))%"
fi

echo "### $TITLE"
Expand Down

0 comments on commit 06c117d

Please sign in to comment.