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

raeburn raeburn at source.lon-capa.org
Thu Feb 16 14:31:14 EST 2012


raeburn		Thu Feb 16 19:31:14 2012 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - Coding style (rev. 1.1153).
    - Standard LON-CAPA indent is 4 spaces.
    - Line width 78 characters or less.
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1153 loncom/lonnet/perl/lonnet.pm:1.1154
--- loncom/lonnet/perl/lonnet.pm:1.1153	Wed Feb 15 21:56:25 2012
+++ loncom/lonnet/perl/lonnet.pm	Thu Feb 16 19:31:14 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1153 2012/02/15 21:56:25 www Exp $
+# $Id: lonnet.pm,v 1.1154 2012/02/16 19:31:14 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3870,11 +3870,14 @@
 my $cachedtime=();
 
 sub load_all_first_access {
-   my ($uname,$udom)=@_;
-   if (($cachedkey eq $uname.':'.$udom) && (abs($cachedtime-time)<5)) { return; };
-   $cachedtime=time;
-   $cachedkey=$uname.':'.$udom;
-   %cachedtimes=&dump('firstaccesstimes',$udom,$uname);
+    my ($uname,$udom)=@_;
+    if (($cachedkey eq $uname.':'.$udom.':'.$courseid) &&
+        (abs($cachedtime-time)<5)) {
+        return;
+    }
+    $cachedtime=time;
+    $cachedkey=$uname.':'.$udom;
+    %cachedtimes=&dump('firstaccesstimes',$udom,$uname);
 }
 
 sub get_first_access {




More information about the LON-CAPA-cvs mailing list