summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/reproducible_html_graphs.sh27
1 files changed, 14 insertions, 13 deletions
diff --git a/bin/reproducible_html_graphs.sh b/bin/reproducible_html_graphs.sh
index ecb0ba32..1b729fdc 100755
--- a/bin/reproducible_html_graphs.sh
+++ b/bin/reproducible_html_graphs.sh
@@ -520,8 +520,20 @@ create_main_stats_page() {
PAGE=index_${VIEW}.html
echo "$(date) - starting to write $PAGE page."
write_page_header $VIEW "Overview of various statistics about reproducible builds"
- # write suite graphs
+ # write suite table
write_page "<p>"
+ write_page "<table class=\"main\"><tr><th>suite</th><th>all sources packages</th><th>reproducible packages</th><th>unreproducible packages</th><th>packages failing to build</th><th>other packages</th></tr>"
+ for SUITE in $SUITES ; do
+ gather_suite_stats
+ write_page "<tr><td>$SUITE</td><td>$AMOUNT"
+ if [ $(echo $PERCENT_TOTAL/1|bc) -lt 98 ] ; then
+ write_page "<span style=\"font-size:0.8em;\">($PERCENT_TOTAL% tested)</span>"
+ fi
+ write_page "</td><td>$COUNT_GOOD / $PERCENT_GOOD%</td><td>$COUNT_BAD / $PERCENT_BAD%</td><td>$COUNT_UGLY / $PERCENT_UGLY%</td><td>$COUNT_OTHER / $PERCENT_OTHER%</td></tr>"
+ done
+ write_page "</table>"
+ # write suite graphs
+ write_page "</p><p style=\"clear:both;\">"
for SUITE in $SUITES ; do
write_page " <a href=\"/$SUITE\"><img src=\"/userContent/$SUITE/${TABLE[0]}.png\" class=\"overview\" alt=\"$SUITE stats\"></a>"
done
@@ -529,7 +541,7 @@ create_main_stats_page() {
# write meta pkg graphs per suite
for SUITE in $SUITES ; do
if [ "$SUITE" != "unstable" ] ; then
- # only show pkg sets from unstable for now
+ # only show pkg sets from unstable
continue
fi
for i in $(seq 1 ${#META_PKGSET[@]}) ; do
@@ -539,17 +551,6 @@ create_main_stats_page() {
done
done
write_page "</p><p>"
- # write suite table
- write_page "<table class=\"main\"><tr><th>suite</th><th>all sources packages</th><th>reproducible packages</th><th>unreproducible packages</th><th>packages failing to build</th><th>other packages</th></tr>"
- for SUITE in $SUITES ; do
- gather_suite_stats
- write_page "<tr><td>$SUITE</td><td>$AMOUNT"
- if [ $(echo $PERCENT_TOTAL/1|bc) -lt 98 ] ; then
- write_page "<span style=\"font-size:0.8em;\">($PERCENT_TOTAL% tested)</span>"
- fi
- write_page "</td><td>$COUNT_GOOD / $PERCENT_GOOD%</td><td>$COUNT_BAD / $PERCENT_BAD%</td><td>$COUNT_UGLY / $PERCENT_UGLY%</td><td>$COUNT_OTHER / $PERCENT_OTHER%</td></tr>"
- done
- write_page "</table>"
# write inventory table
write_page "<table class=\"main\"><tr><th>&nbsp;</th><th>amount</th></tr>"
write_page "<tr><td>identified distinct issues</td><td>$ISSUES</td></tr>"