From 6e33809f9bbaaab62f4d9ba7a76a5291a9163694 Mon Sep 17 00:00:00 2001
From: Holger Levsen
Date: Wed, 6 Jan 2016 13:01:54 +0100
Subject: reproducible: show blacklisted percentage
---
bin/reproducible_html_dashboard.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
(limited to 'bin/reproducible_html_dashboard.sh')
diff --git a/bin/reproducible_html_dashboard.sh b/bin/reproducible_html_dashboard.sh
index 037806e6..64fe8404 100755
--- a/bin/reproducible_html_dashboard.sh
+++ b/bin/reproducible_html_dashboard.sh
@@ -200,6 +200,7 @@ gather_suite_arch_stats() {
PERCENT_NOTFORUS=$(echo "scale=1 ; ($COUNT_NOTFORUS*100/$COUNT_TOTAL)" | bc || echo 0)
PERCENT_DEPWAIT=$(echo "scale=1 ; ($COUNT_DEPWAIT*100/$COUNT_TOTAL)" | bc || echo 0)
PERCENT_SOURCELESS=$(echo "scale=1 ; ($COUNT_SOURCELESS*100/$COUNT_TOTAL)" | bc || echo 0)
+ PERCENT_BLACKLISTED=$(echo "scale=1 ; ($COUNT_BLACKLISTED*100/$COUNT_TOTAL)" | bc || echo 0)
PERCENT_OTHER=$(echo "scale=1 ; ($COUNT_OTHER*100/$COUNT_TOTAL)" | bc || echo 0)
}
@@ -391,7 +392,7 @@ create_suite_arch_stats_page() {
write_page "and those "
set_icon blacklisted
write_icon
- write_page "$COUNT_BLACKLISTED blacklisted packages neither.
"
+ write_page "$COUNT_BLACKLISTED ($PERCENT_BLACKLISTED%) blacklisted packages neither."
write_page ""
write_page " "
for i in 0 2 ; do
--
cgit v1.2.3-70-g09d2