When we do "showall", or ask to rebuild checkin history, then we'll do

a week.  But, more normally, we'll only do two days, since it's much
faster that way, and we need to do this all the time.
This commit is contained in:
terry%netscape.com 1999-02-23 20:31:02 +00:00
parent e52c15774b
commit 0253fabd29
2 changed files with 10 additions and 3 deletions

View File

@ -24,6 +24,13 @@ require 'globals.pl';
$F_DEBUG=1;
$days = 2;
if ($ARGV[0] eq "-days") {
shift @ARGV;
$days = shift @ARGV;
}
$tree = $ARGV[0];
open(SEMFILE, ">>$tree/buildwho.sem") || die "Couldn't open semaphore file!";
@ -64,7 +71,7 @@ sub build_who {
close(BUILDLOG);
#($j,$query_date_min) = split(/\|/, $line);
$query_date_min = time - (60 * 60 * 24 * 7); # One week.
$query_date_min = time - (60 * 60 * 24 * $days);
if( $F_DEBUG ){
print "Minimum date: $query_date_min\n";

View File

@ -53,8 +53,8 @@ $colormap = {
#$form{'tree'} = DogbertTip;
$tree = $form{'tree'};
if (exists $form{'rebuildguilty'}) {
system ("./buildwho.pl $tree > /dev/null");
if (exists $form{'rebuildguilty'} || exists $form{'showall'}) {
system ("./buildwho.pl -days 7 $tree > /dev/null");
undef $form{'rebuildguilty'};
}