summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-01-28 18:49:06 +0100
committerHolger Levsen <holger@layer-acht.org>2016-01-28 18:49:06 +0100
commit5160d08109407921f97aac4e04cfd9bbed737413 (patch)
tree9fbec53bf9d37c92ed487840b526d7a40844f554
parent94e7196321c0902b50a0f4a790123d4c37e2f9b8 (diff)
downloadjenkins.debian.net-5160d08109407921f97aac4e04cfd9bbed737413.tar.xz
reproducible debian: correctly calculate builds per day in the last 4 weeks
-rwxr-xr-xbin/reproducible_html_dashboard.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/reproducible_html_dashboard.sh b/bin/reproducible_html_dashboard.sh
index 1b4342d5..e1505d0f 100755
--- a/bin/reproducible_html_dashboard.sh
+++ b/bin/reproducible_html_dashboard.sh
@@ -322,7 +322,7 @@ 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
- RESULT=$(sqlite3 -init ${INIT} ${PACKAGES_DB} "SELECT COUNT(r.build_date) FROM results AS r JOIN sources AS s ON r.package_id=s.id WHERE r.build_date > datetime('$DATE', '-$TIMESPAN_RAW days') AND s.architecture='$ARCH'")
+ 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>"
done