From 211f382b1d758837ee81197478954b33ece393bc Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 3 Oct 2014 00:34:06 +0200 Subject: reproducible: fix percentage in stats --- bin/reproducible_stats.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/reproducible_stats.sh b/bin/reproducible_stats.sh index 2f9cb7bd..07e8a72b 100755 --- a/bin/reproducible_stats.sh +++ b/bin/reproducible_stats.sh @@ -34,9 +34,9 @@ COUNT_TOTAL=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT COUNT(name) FROM source_p PERCENT_TOTAL=$(echo "scale=1 ; ($COUNT_TOTAL*100/$AMOUNT)" | bc) PERCENT_GOOD=$(echo "scale=1 ; ($COUNT_GOOD*100/$COUNT_TOTAL)" | bc) PERCENT_BAD=$(echo "scale=1 ; ($COUNT_BAD*100/$COUNT_TOTAL)" | bc) -PERCENT_UGLY=$(echo "scale=1 ; ($COUNT_UGLY*100/$AMOUNT)" | bc) -PERCENT_NOTFORUS=$(echo "scale=1 ; ($COUNT_NOTFORUS*100/$AMOUNT)" | bc) -PERCENT_SOURCELESS=$(echo "scale=1 ; ($COUNT_SOURCELESS*100/$AMOUNT)" | bc) +PERCENT_UGLY=$(echo "scale=1 ; ($COUNT_UGLY*100/$COUNT_TOTAL)" | bc) +PERCENT_NOTFORUS=$(echo "scale=1 ; ($COUNT_NOTFORUS*100/$COUNT_TOTAL)" | bc) +PERCENT_SOURCELESS=$(echo "scale=1 ; ($COUNT_SOURCELESS*100/$COUNT_TOTAL)" | bc) GUESS_GOOD=$(echo "$PERCENT_GOOD*$AMOUNT/100" | bc) htmlecho() { -- cgit v1.2.3-70-g09d2