diff options
author | Holger Levsen <holger@layer-acht.org> | 2014-10-03 00:34:06 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2014-10-03 00:34:06 +0200 |
commit | 211f382b1d758837ee81197478954b33ece393bc (patch) | |
tree | 7f30c33bb6eaf5357084d3b191cb93f0977cb519 | |
parent | d35030cd5228988418161c92975ea405afab086a (diff) | |
download | jenkins.debian.net-211f382b1d758837ee81197478954b33ece393bc.tar.xz |
reproducible: fix percentage in stats
-rwxr-xr-x | bin/reproducible_stats.sh | 6 |
1 files changed, 3 insertions, 3 deletions
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() { |