diff options
author | Holger Levsen <holger@layer-acht.org> | 2017-06-12 15:22:42 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2017-06-12 15:22:42 +0200 |
commit | c58df62c75de8172ee2e7a311ade794e3b8a8772 (patch) | |
tree | 11edc6fee864b3e78210cd671a3aa1787ce6eb28 | |
parent | 6b6320cfd86938fdcb4bb70e49d49f844b5bcfd6 (diff) | |
download | jenkins.debian.net-c58df62c75de8172ee2e7a311ade794e3b8a8772.tar.xz |
reproducible Debian: correctly recognize 0 builds per day
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-x | bin/reproducible_nodes_info.sh | 1 |
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 |