[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm

www lon-capa-cvs@mail.lon-capa.org
Mon, 16 Sep 2002 13:04:16 -0000


www		Mon Sep 16 09:04:16 2002 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  Bug 199 - fixed system-wide access count.
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.280 loncom/lonnet/perl/lonnet.pm:1.281
--- loncom/lonnet/perl/lonnet.pm:1.280	Sat Sep 14 14:57:59 2002
+++ loncom/lonnet/perl/lonnet.pm	Mon Sep 16 09:04:16 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.280 2002/09/14 18:57:59 www Exp $
+# $Id: lonnet.pm,v 1.281 2002/09/16 13:04:16 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -871,7 +871,7 @@
     my $url=&declutter(shift);
     unless ($ENV{'request.course.id'}) { return ''; }
     $accesshash{$ENV{'request.course.id'}.'___'.$url.'___course'}=1;
-    my $key=$processmarker.'_'.$dumpcount.'___'.$url.'___count';
+    my $key=$$.$processmarker.'_'.$dumpcount.'___'.$url.'___count';
     if (defined($accesshash{$key})) {
 	$accesshash{$key}++;
     } else {
@@ -3349,7 +3349,7 @@
 
 %metacache=();
 
-$processmarker=$$.'_'.time.'_'.$perlvar{'lonHostID'};
+$processmarker='_'.time.'_'.$perlvar{'lonHostID'};
 $dumpcount=0;
 
 &logtouch();