Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/nit-picker
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-09-21 19:10:02 +0200
committerErich Eckner <git@eckner.net>2019-09-21 19:19:42 +0200
commit49afef68b9bc1a9bf4cf61a8a5cc8040fd091ab6 (patch)
tree8865c7f47dfa85ab401ff3ad21cff2953c87a61c /bin/nit-picker
parent967567a352b692ac8d5d68f8c8146a41daadb2f4 (diff)
bin/nit-picker: *really,really* only complain once a day about build durations
Diffstat (limited to 'bin/nit-picker')
-rwxr-xr-xbin/nit-picker12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/nit-picker b/bin/nit-picker
index 4caa4e0..2332d1c 100755
--- a/bin/nit-picker
+++ b/bin/nit-picker
@@ -88,13 +88,13 @@ build_duration_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)
+ else
+ check_build_duration=false
+ fi
if [ $# -eq 0 ]; then
- if [ "$(date +%s)" -gt "$((build_duration_check + 60*60*24))" ]; then
- check_build_duration=true
- build_duration_check=$(date +%s)
- else
- check_build_duration=false
- fi
# shellcheck disable=SC2016
{
printf 'SELECT DISTINCT'