--- loncom/lond 2003/10/08 20:39:42 1.132.2.3 +++ loncom/lond 2003/08/11 21:15:26 1.133 @@ -2,7 +2,7 @@ # The LearningOnline Network # lond "LON Daemon" Server (port "LOND" 5663) # -# $Id: lond,v 1.132.2.3 2003/10/08 20:39:42 albertel Exp $ +# $Id: lond,v 1.133 2003/08/11 21:15:26 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -73,7 +73,7 @@ my $DEBUG = 0; # Non zero to ena my $status=''; my $lastlog=''; -my $VERSION='$Revision: 1.132.2.3 $'; #' stupid emacs +my $VERSION='$Revision: 1.133 $'; #' stupid emacs my $remoteVERSION; my $currenthostid; my $currentdomainid; @@ -286,7 +286,7 @@ sub checkchildren { } } $SIG{ALRM} = 'DEFAULT'; - $SIG{__DIE__} = \&catchexception; + $SIG{__DIE__} = \&cathcexception; } # --------------------------------------------------------------------- Logging @@ -1556,7 +1556,7 @@ sub make_new_child { while (($key,$value) = each(%hash)) { my ($descr,$lasttime)=split(/\:/,$value); if ($lasttime<$since) { next; } - if ($regexp eq '.') { + if ($description eq '.') { $qresult.=$key.'='.$descr.'&'; } else { my $unescapeVal = &unescape($descr); @@ -2080,8 +2080,8 @@ sub userload { my $curtime=time; while ($filename=readdir(LONIDS)) { if ($filename eq '.' || $filename eq '..') {next;} - my ($mtime)=(stat($perlvar{'lonIDsDir'}.'/'.$filename))[9]; - if ($curtime-$mtime < 3600) { $numusers++; } + my ($atime)=(stat($perlvar{'lonIDsDir'}.'/'.$filename))[8]; + if ($curtime-$atime < 3600) { $numusers++; } } closedir(LONIDS); }