From 3a65a709fc4dda0f903a010636bb755b3211793e Mon Sep 17 00:00:00 2001 From: "slamm%netscape.com" Date: Thu, 17 Feb 2000 01:18:27 +0000 Subject: [PATCH] Fix mirror timing equation. --- tools/tinderbox/build-seamonkey.pl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/tinderbox/build-seamonkey.pl b/tools/tinderbox/build-seamonkey.pl index a2258cc616b..e2e10776ad6 100755 --- a/tools/tinderbox/build-seamonkey.pl +++ b/tools/tinderbox/build-seamonkey.pl @@ -10,7 +10,7 @@ use Sys::Hostname; use POSIX qw(sys_wait_h strftime); use Cwd; -$Version = '$Revision: 1.52 $ '; +$Version = '$Revision: 1.53 $ '; sub PrintUsage { @@ -145,10 +145,10 @@ sub BuildIt { if ($UseCVSMirror) { # Compute time of last completed update on mirror. $cycle = 5 * 60; # Updates every 5 minutes. - $offset = 0 * 60; # Starting 0 minutes after the hour. - $update_duration = 2 * 60; # Takes 2 minutes to update. - $StartTime = int(($StartTime + $offset) / $cycle) * $cycle; - $StartTime -= $offset + $update_duration; + $begin = 0 * 60; # Starts 0 minutes after the hour. + $lag = 2 * 60; # Takes 2 minute to update. + + $StartTime = int(($StartTime + $begin - $lag) / $cycle) * $cycle - $begin; $UseTimeStamp = 1; $ENV{MOZ_CO_USE_MIRROR} = 1; }