Skip to content

Commit

Permalink
[i14-15] Added options: decimal separator and rounding mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Epatko committed Mar 24, 2024
1 parent 6e5516b commit e6e9a94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions generate-badge.sh
Expand Up @@ -43,6 +43,7 @@ if [ "$Excld" != '[]' ]; then
fi

Count=$(hoc -d "$Dir" ${Exclude:+${Exclude[@]}} -s "$Since" -b "$Before" -f "int")
echo "Hits of code: $Count"

if [ "$Rounding" == "K" ]; then Count="$(python -c "print(round($Count/1000, 1))")K"
elif [ "$Rounding" == "M" ]; then Count="$(python -c "print(round($Count/1000000, 1))")M"
Expand Down

0 comments on commit e6e9a94

Please sign in to comment.