[LON-CAPA-cvs] cvs: loncom / lond /lonnet/perl lonnet.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Fri, 22 Aug 2003 16:07:11 -0000
albertel Fri Aug 22 12:07:11 2003 EDT
Modified files:
/loncom lond
/loncom/lonnet/perl lonnet.pm
Log:
- need to use mtime not atime BUG#2081
Index: loncom/lond
diff -u loncom/lond:1.137 loncom/lond:1.138
--- loncom/lond:1.137 Tue Aug 19 06:46:14 2003
+++ loncom/lond Fri Aug 22 12:07:11 2003
@@ -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 $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 @@
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);
}
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.403 loncom/lonnet/perl/lonnet.pm:1.404
--- loncom/lonnet/perl/lonnet.pm:1.403 Tue Aug 19 21:13:56 2003
+++ loncom/lonnet/perl/lonnet.pm Fri Aug 22 12:07:11 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.403 2003/08/20 01:13:56 www Exp $
+# $Id: lonnet.pm,v 1.404 2003/08/22 16:07:11 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -379,8 +379,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);
}