--- loncom/lonnet/perl/lonnet.pm 2003/08/17 18:57:53 1.398.2.1 +++ loncom/lonnet/perl/lonnet.pm 2003/08/22 16:24:45 1.398.2.1.2.1 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.398.2.1 2003/08/17 18:57:53 albertel Exp $ +# $Id: lonnet.pm,v 1.398.2.1.2.1 2003/08/22 16:24:45 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -377,8 +377,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); }