From cfc5b38fdc9eaa4e78f40a0c570925f6c6f6fbf9 Mon Sep 17 00:00:00 2001 From: "slamm%netscape.com" Date: Fri, 18 Feb 2000 00:49:45 +0000 Subject: [PATCH] Fix 'off by one' error. --- webtools/tinderbox/copylogs | 4 ++-- webtools/tinderbox/warnings.pl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/webtools/tinderbox/copylogs b/webtools/tinderbox/copylogs index fc002118a5a..589eabb9503 100755 --- a/webtools/tinderbox/copylogs +++ b/webtools/tinderbox/copylogs @@ -34,8 +34,8 @@ sub last_successful_builds { print STDERR "done\n"; - for (my $ii=1; $ii <= $name_count; $ii++) { - for (my $tt=1; $tt <= $time_count; $tt++) { + for (my $ii=0; $ii <= $name_count; $ii++) { + for (my $tt=0; $tt <= $time_count; $tt++) { if (defined($br = $build_table->[$tt][$ii]) and $br->{buildstatus} eq 'success') { push @build_records, $br; diff --git a/webtools/tinderbox/warnings.pl b/webtools/tinderbox/warnings.pl index cf930dfc141..ba72a44a10a 100755 --- a/webtools/tinderbox/warnings.pl +++ b/webtools/tinderbox/warnings.pl @@ -292,8 +292,8 @@ sub find_build_record { tb_load_data(); print STDERR "done\n"; - for (my $ii=1; $ii <= $name_count; $ii++) { - for (my $tt=1; $tt <= $time_count; $tt++) { + for (my $ii=0; $ii <= $name_count; $ii++) { + for (my $tt=0; $tt <= $time_count; $tt++) { if (defined($br = $build_table->[$tt][$ii]) and $br->{logfile} eq $log_file) { return $br;