[LON-CAPA-cvs] cvs: loncom(version_1_0_1) /lonnet/perl lonnet.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Fri, 22 Aug 2003 16:24:45 -0000
albertel Fri Aug 22 12:24:45 2003 EDT
Modified files: (Branch: version_1_0_1)
/loncom/lonnet/perl lonnet.pm
Log:
- backport 1.404 to 1.0.1
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.398.2.1 loncom/lonnet/perl/lonnet.pm:1.398.2.1.2.1
--- loncom/lonnet/perl/lonnet.pm:1.398.2.1 Sun Aug 17 14:57:53 2003
+++ loncom/lonnet/perl/lonnet.pm Fri Aug 22 12:24:45 2003
@@ -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 @@
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);
}