--- loncom/lond 2003/08/19 10:46:14 1.137 +++ loncom/lond 2003/08/22 16:07:11 1.138 @@ -2,7 +2,7 @@ # The LearningOnline Network # lond "LON Daemon" Server (port "LOND" 5663) # -# $Id: lond,v 1.137 2003/08/19 10:46:14 foxr Exp $ +# $Id: lond,v 1.138 2003/08/22 16:07:11 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -81,7 +81,7 @@ my $DEBUG = 0; # Non zero to ena my $status=''; my $lastlog=''; -my $VERSION='$Revision: 1.137 $'; #' stupid emacs +my $VERSION='$Revision: 1.138 $'; #' stupid emacs my $remoteVERSION; my $currenthostid; my $currentdomainid; @@ -2128,8 +2128,8 @@ sub userload { my $curtime=time; while ($filename=readdir(LONIDS)) { if ($filename eq '.' || $filename eq '..') {next;} - my ($atime)=(stat($perlvar{'lonIDsDir'}.'/'.$filename))[8]; - if ($curtime-$atime < 3600) { $numusers++; } + my ($mtime)=(stat($perlvar{'lonIDsDir'}.'/'.$filename))[9]; + if ($curtime-$mtime < 3600) { $numusers++; } } closedir(LONIDS); }