From e6e9a94264ea17d8104311054ad701c7a50776c7 Mon Sep 17 00:00:00 2001 From: Mikhail Epatko Date: Sun, 24 Mar 2024 20:42:10 +0300 Subject: [PATCH] [i14-15] Added options: decimal separator and rounding mode #14 #15 --- generate-badge.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/generate-badge.sh b/generate-badge.sh index 11a1049..594390d 100755 --- a/generate-badge.sh +++ b/generate-badge.sh @@ -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"