summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-05-03 18:34:07 +0200
committerHolger Levsen <holger@layer-acht.org>2015-05-03 18:34:07 +0200
commit067407932d09e452870c371ba83eda6d96f98594 (patch)
tree2dcbebc5f002004dfe14cdf37c57a32e781d91c5
parent4aa76575aa348f3bc63f336c1cbe9b78f40a503f (diff)
downloadjenkins.debian.net-067407932d09e452870c371ba83eda6d96f98594.tar.xz
reproducible: correctly create graph of oldest build per day
-rwxr-xr-xbin/reproducible_html_graphs.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/reproducible_html_graphs.sh b/bin/reproducible_html_graphs.sh
index 4813511c..16ad407b 100755
--- a/bin/reproducible_html_graphs.sh
+++ b/bin/reproducible_html_graphs.sh
@@ -298,7 +298,8 @@ create_png_from_table() {
(SELECT e.other FROM stats_builds_per_day e WHERE s.datum=e.datum AND suite='experimental') AS other_experimental
FROM stats_builds_per_day AS s GROUP BY s.datum" >> ${TABLE[$1]}.csv
elif [ $1 -eq 2 ] ; then
- sqlite3 -init ${INIT} -csv ${PACKAGES_DB} "SELECT datum, ((oldest_reproducible + oldest_unreproducible + oldest_FTBFS)/3) FROM ${TABLE[$1]} ${WHERE_EXTRA} ORDER BY datum" >> ${TABLE[$1]}.csv
+ # just make a graph of the oldest build, no matter what status
+ sqlite3 -init ${INIT} -csv ${PACKAGES_DB} "SELECT datum, max(oldest_reproducible, oldest_unreproducible, oldest_FTBFS) FROM ${TABLE[$1]} ${WHERE_EXTRA} ORDER BY datum" >> ${TABLE[$1]}.csv
elif [ $1 -eq 7 ] ; then
sqlite3 -init ${INIT} -csv ${PACKAGES_DB} "SELECT datum, $SUM_DONE, $SUM_OPEN from ${TABLE[3]} ORDER BY datum" >> ${TABLE[$1]}.csv
else