From 01d194aa5b8a7cb955f80b86f3abc3d709c7709e Mon Sep 17 00:00:00 2001 From: "terry%netscape.com" Date: Tue, 9 Mar 1999 05:07:50 +0000 Subject: [PATCH] Added a disgusting hack to deal with the fact that we can occasionally get builds with wildly wrong times. --- webtools/tinderbox/globals.pl | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/webtools/tinderbox/globals.pl b/webtools/tinderbox/globals.pl index 5e078aff359b..8644aff08043 100755 --- a/webtools/tinderbox/globals.pl +++ b/webtools/tinderbox/globals.pl @@ -201,11 +201,21 @@ sub load_buildlog { my ($bw) = Backwards->new("$t->{name}/build.dat") or die; + my $tooearly = 0; while( $_ = $bw->readline ) { chomp; ($mailtime, $buildtime, $buildname, $errorparser, $buildstatus, $logfile, $binaryname) = split( /\|/ ); - last if $buildtime < $mindate; + if ($buildtime < $mindate) { + # Occasionally, a build might show up with a bogus time. So, + # we won't judge ourselves as having hit the end until we + # hit a full 20 lines in a row that are too early. + if ($tooearly++ > 20) { + last; + } + next; + } + $tooearly = 0; $buildrec = { mailtime => $mailtime, buildtime => $buildtime,