Commit 50ae9c1e authored by Holger Levsen's avatar Holger Levsen

reproducible Arch Linux: scheduler is run every 4h, thus present 4h stats

Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent a8fe9887
......@@ -259,14 +259,14 @@ update_archlinux_repositories() {
MESSAGE="${message}${msg_old}${msg_depwait404}, for $total scheduled out of $TOTAL."
# the next 3 lines could maybe do some refactoring. but then, all of this should be rewritten in python using templates...
DISTROID=$(query_db "SELECT id FROM distributions WHERE name='archlinux'")
MAXDATE="$(date -u +'%Y-%m-%d %H:%M' -d '3 hours ago')"
MAXDATE="$(date -u +'%Y-%m-%d %H:%M' -d '4 hours ago')"
RECENT=$(query_db "SELECT count(s.name) FROM sources AS s
JOIN results AS r
ON s.id=r.package_id
WHERE s.distribution=$DISTROID
AND s.architecture='x86_64'
AND r.build_date > '$MAXDATE'")
MESSAGE="$MESSAGE ($RECENT builds in the last 3h.)"
MESSAGE="$MESSAGE ($RECENT builds in the last 4h.)"
echo -n "$(date -u ) - "
irc_message archlinux-reproducible "$MESSAGE"
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment