summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-04-18 20:44:56 +0200
committerHolger Levsen <holger@layer-acht.org>2016-04-18 20:44:56 +0200
commit0fee5e52b99a57a9f5ab67d6f3d03cd51be3025e (patch)
treef39e4e235170bf3fabdc019672524071a5e13e5f
parent8fe3fa523274815cb7d614b24069b556c7dd49d6 (diff)
downloadjenkins.debian.net-0fee5e52b99a57a9f5ab67d6f3d03cd51be3025e.tar.xz
reproducible debian dashboard: show correct average for i386 builds per day
-rwxr-xr-xbin/reproducible_html_dashboard.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/reproducible_html_dashboard.sh b/bin/reproducible_html_dashboard.sh
index f5d1faa8..4e6970df 100755
--- a/bin/reproducible_html_dashboard.sh
+++ b/bin/reproducible_html_dashboard.sh
@@ -328,9 +328,16 @@ write_build_performance_stats() {
done
write_page "</tr><tr><td>packages tested on average per day in the last $TIMESPAN_VERBOSE</td>"
for ARCH in ${ARCHS} ; do
+ if [ "$ARCH" = "i386" ] ; then
+ TIMESPAN_RAW=$(sqlite3 -init ${INIT} ${PACKAGES_DB} "SELECT CAST(max(oldest_reproducible, oldest_unreproducible, oldest_FTBFS) AS INTEGER) FROM ${TABLE[2]} WHERE suite='testing' AND architecture='$ARCH' AND datum='$DATE'")
+ fi
RESULT=$(sqlite3 -init ${INIT} ${PACKAGES_DB} "SELECT COUNT(r.build_date) FROM stats_build AS r WHERE r.build_date > datetime('$DATE', '-$TIMESPAN_RAW days') AND r.architecture='$ARCH'")
RESULT="$(echo $RESULT/$TIMESPAN_RAW|bc)"
- write_page "<td>$RESULT</td>"
+ if [ "$ARCH" != "i386" ] ; then
+ write_page "<td>$RESULT</td>"
+ else
+ write_page "<td>$RESULT ($TIMESPAN_RAW days)</td>"
+ fi
done
local TIMESPAN_VERBOSE="3 months"
local TIMESPAN_RAW="91.5"