index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2019-11-05 09:05:55 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-11-05 09:13:32 +0100 |
commit | d376187cd5c285509cbb3d205bf0689268f023a5 (patch) | |
tree | 52595a7b1621f58b878a570572fed1e8f59ae4b0 | |
parent | fba40d3005f57e78d24679a14f04f24fb5357efb (diff) |
-rwxr-xr-x | bin/nit-picker | 12 |
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`' |