[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Thu, 08 May 2003 22:07:28 -0000
albertel Thu May 8 18:07:28 2003 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
- typo
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.370 loncom/lonnet/perl/lonnet.pm:1.371
--- loncom/lonnet/perl/lonnet.pm:1.370 Thu May 8 17:50:54 2003
+++ loncom/lonnet/perl/lonnet.pm Thu May 8 18:07:28 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.370 2003/05/08 21:50:54 albertel Exp $
+# $Id: lonnet.pm,v 1.371 2003/05/08 22:07:28 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -358,14 +358,14 @@
while ($filename=readdir(LONIDS)) {
if ($filename eq '.' || $filename eq '..') {next;}
my ($atime)=(stat($perlvar{'lonIDsDir'}.'/'.$filename))[8];
- if ($curtime-$atime < 3600) { $num_users++; }
+ if ($curtime-$atime < 3600) { $numusers++; }
}
closedir(LONIDS);
}
my $userloadpercent=0;
my $maxuserload=$perlvar{'lonUserLoadLim'};
if ($maxuserload) {
- $userloadpercent=100*$num_users/$maxuserload;
+ $userloadpercent=100*$numusers/$maxuserload;
}
return $userloadpercent;
}