Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-11-05 09:05:55 +0100
committerErich Eckner <git@eckner.net>2019-11-05 09:13:32 +0100
commitd376187cd5c285509cbb3d205bf0689268f023a5 (patch)
tree52595a7b1621f58b878a570572fed1e8f59ae4b0
parentfba40d3005f57e78d24679a14f04f24fb5357efb (diff)
bin/nit-picker: build-duration-check -> once-a-day-check
-rwxr-xr-xbin/nit-picker12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/nit-picker b/bin/nit-picker
index 03266dd..2b92b84 100755
--- a/bin/nit-picker
+++ b/bin/nit-picker
@@ -101,15 +101,15 @@ local_irc_say() {
mysql_load_min_and_max_versions
-build_duration_check=0
+last_once_a_day_check=0
while pgrep -x ii >/dev/null \
|| ! ${irc}; do
- if [ "$(date +%s)" -gt "$((build_duration_check + 60*60*24))" ]; then
- check_build_duration=true
- build_duration_check=$(date +%s)
+ if [ "$(date +%s)" -gt "$((last_once_a_day_check + 60*60*24))" ]; then
+ do_once_a_day_checks=true
+ last_once_a_day_check=$(date +%s)
else
- check_build_duration=false
+ do_once_a_day_checks=false
fi
if [ $# -eq 0 ]; then
# shellcheck disable=SC2016
@@ -147,7 +147,7 @@ while pgrep -x ii >/dev/null \
printf ' WHERE `repositories`.`is_on_master_mirror`'
printf ';\n'
- if "${check_build_duration}"; then
+ if "${do_once_a_day_checks}"; then
printf 'SELECT'
printf ' "build-duration",'
printf '`build_slaves`.`name`'