diff --git a/webtools/tinderbox/globals.pl b/webtools/tinderbox/globals.pl index 9f26b9b9a07..77fc6a21a77 100755 --- a/webtools/tinderbox/globals.pl +++ b/webtools/tinderbox/globals.pl @@ -36,6 +36,7 @@ $name_count = 0; $build_time_index = {}; $build_time_times = []; $time_count = 0; +$mindate_time_count = 0; # time_count that corresponds to the mindate $build_table = []; $who_list = []; @@ -216,8 +217,8 @@ sub load_buildlog { # Ignore stuff in the future. next if $buildtime > $maxdate; - # Ignore stuff in the past - if ($buildtime < $mindate) { + # Ignore stuff in the past (but get a 2 hours of extra data) + if ($buildtime < $mindate - 2*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. @@ -325,6 +326,7 @@ sub get_build_time_index { $i = 1; for $n (sort {$b <=> $a} keys (%{$build_time_index})) { $build_time_times->[$i] = $n; + $mindate_time_count = $i if $n >= $mindate; $i++; } diff --git a/webtools/tinderbox/showbuilds.cgi b/webtools/tinderbox/showbuilds.cgi index d06f56bed3a..6b09c8535f0 100755 --- a/webtools/tinderbox/showbuilds.cgi +++ b/webtools/tinderbox/showbuilds.cgi @@ -238,11 +238,16 @@ sub display_build_table { sub display_build_table_body { my($t); + # Set by display_build_table_row() for display_continue_row() + %last_color = (); + $t = 1; while( $t <= $time_count ){ + last if $build_time_times->[$t] < $mindate; display_build_table_row( $t ); $t++; } + display_continue_row($t) if $t <= $time_count; } sub display_build_table_row { @@ -275,7 +280,6 @@ sub display_build_table_row { print "