[LON-CAPA-cvs] cvs: loncom /debugging_tools login_count.pl
albertel
lon-capa-cvs@mail.lon-capa.org
Wed, 30 Mar 2005 17:24:36 -0000
albertel Wed Mar 30 12:24:36 2005 EDT
Modified files:
/loncom/debugging_tools login_count.pl
Log:
- remove bug that i
Index: loncom/debugging_tools/login_count.pl
diff -u loncom/debugging_tools/login_count.pl:1.4 loncom/debugging_tools/login_count.pl:1.5
--- loncom/debugging_tools/login_count.pl:1.4 Wed Mar 30 12:18:04 2005
+++ loncom/debugging_tools/login_count.pl Wed Mar 30 12:24:36 2005
@@ -6,7 +6,7 @@
use Date::Manip;
my $start_time=&UnixDate("Aug 30th 00:00:00 2004","%s");
-my @counts=('1','10','100','1000','10000','100000','250000');
+my @counts=('1','10');#,'100','1000','10000','100000','250000');
sub only_user_activitylog_files {
@@ -43,7 +43,7 @@
$total_login+=scalar(@{$data{$key}});
my $day=strftime('%F',localtime($key));
$byday{$day}+=scalar(@{$data{$key}});
- while ($total_login >= $counts[0]) {
+ while ($counts[0] && $total_login >= $counts[0]) {
print("The $counts[0] ($total_login) login was ".
join(', ',@{$data{$key}})."\n");
shift(@counts);