summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2017-06-12 15:22:42 +0200
committerHolger Levsen <holger@layer-acht.org>2017-06-12 15:22:42 +0200
commitc58df62c75de8172ee2e7a311ade794e3b8a8772 (patch)
tree11edc6fee864b3e78210cd671a3aa1787ce6eb28
parent6b6320cfd86938fdcb4bb70e49d49f844b5bcfd6 (diff)
downloadjenkins.debian.net-c58df62c75de8172ee2e7a311ade794e3b8a8772.tar.xz
reproducible Debian: correctly recognize 0 builds per day
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-xbin/reproducible_nodes_info.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/reproducible_nodes_info.sh b/bin/reproducible_nodes_info.sh
index 034b0b02..2bb686ce 100755
--- a/bin/reproducible_nodes_info.sh
+++ b/bin/reproducible_nodes_info.sh
@@ -64,6 +64,7 @@ for i in $BUILD_NODES ; do
echo "$l builds/day ($j/$k) on $i" >> $TMPFILE2
DATE=$(date '+%Y-%m-%d %H:%M' -d "-1 days")
m=$(query_db "SELECT count(build_date) FROM stats_build AS r WHERE ( r.node1='$i' OR r.node2='$i' ) AND r.build_date > '$DATE' " 2>/dev/null)
+ if [ "$m" = "" ] ; then m=0 ; fi
echo "$m builds in the last 24h on $i" >> $TMPFILE3
done
rm $TMPFILE1 >/dev/null