From 3bb49a53cfbf025ffed43510d1be7d9d8ea7daf8 Mon Sep 17 00:00:00 2001 From: "terry%netscape.com" Date: Tue, 9 Mar 1999 15:22:09 +0000 Subject: [PATCH] Added a disgusting hack to deal with the fact that we can occasionally get builds with wildly wrong times. git-svn-id: svn://10.0.0.236/trunk@23336 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/tinderbox/showbuilds.cgi | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/mozilla/webtools/tinderbox/showbuilds.cgi b/mozilla/webtools/tinderbox/showbuilds.cgi index 1fbebb1fb24..468718c89ad 100755 --- a/mozilla/webtools/tinderbox/showbuilds.cgi +++ b/mozilla/webtools/tinderbox/showbuilds.cgi @@ -678,6 +678,7 @@ sub do_express { my ($bw) = Backwards->new("$form{tree}/build.dat") or die; $latest_time=0; + my $tooearly = 0; while( $_ = $bw->readline ) { chop; ($mailtime, $buildtime, $buildname, $errorparser, $buildstatus, $logfile) = @@ -687,7 +688,16 @@ sub do_express { $latest_time = $buildtime; } # Ignore stuff more than 12 hours old - last if $buildtime < $latest_time - 12*60*60; + if ($buildtime < $latest_time - 12*60*60) { + # 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; + } + next if defined $build{$buildname}; $build{$buildname} = $buildstatus;