--- loncom/debugging_tools/login_count.pl 2005/03/30 17:41:30 1.6 +++ loncom/debugging_tools/login_count.pl 2005/03/30 18:04:53 1.7 @@ -5,7 +5,7 @@ use lib '/home/httpd/lib/perl/'; use LONCAPA::Configuration; use Date::Manip; -my $start_time=&UnixDate("Aug 30th 00:00:00 2004","%s"); +my $start_time=&UnixDate("Mar 30th 00:00:00 2004","%s"); my @counts=('1','10','100','1000','10000','100000','250000','1000000'); @@ -26,8 +26,10 @@ sub process_activitylog_file { while (my $line=) { if ($line !~ /Login/) { next; } my ($date,$machine)=split(':',$line,3); - if ($date > $start_time) { push (@{$data{$date}},$user); } - $machine{$machine}++; + if ($date > $start_time) { + push (@{$data{$date}},$user); + $machine{$machine}++; + } } if ($numusers%100 == 0) { print "\b\b\b\b\b\b\b\b\b\b\b\b\b\bDid $user";