[lintian] 01/02: c/r-lintian-h: Skip the next round if there is less than 5m
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit 7b3190d03535881ff918dba5ef5d1a6f85546d4c
Author: Niels Thykier <niels@thykier.net>
Date: Sat Aug 6 12:54:22 2016 +0000
c/r-lintian-h: Skip the next round if there is less than 5m
Signed-off-by: Niels Thykier <niels@thykier.net>
---
commands/reporting-lintian-harness.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/commands/reporting-lintian-harness.pm b/commands/reporting-lintian-harness.pm
index 7d33b72..46f12be 100644
--- a/commands/reporting-lintian-harness.pm
+++ b/commands/reporting-lintian-harness.pm
@@ -220,7 +220,8 @@ sub process_worklist {
my (@work_splice, @completed, %processed);
my ($lintpipe, $lint_stdin, $status_fd, $lint_status_out);
- if (time() >= $start_time + BACKLOG_PROCESSING_TIME_LIMIT) {
+ # Bail if there is less than 5 minutes left
+ if (time() >= $start_time + BACKLOG_PROCESSING_TIME_LIMIT - 300) {
log_msg('No more time for processing backlogs');
$exit_code = 2;
last;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: