[LON-CAPA-cvs] cvs: loncom / lond

raeburn raeburn at source.lon-capa.org
Mon May 4 13:05:10 EDT 2020


raeburn		Mon May  4 17:05:10 2020 EDT

  Modified files:              
    /loncom	lond 
  Log:
  - Last activity data for course users from server's in course's domain on
    "What's New" page.
  
  
Index: loncom/lond
diff -u loncom/lond:1.561 loncom/lond:1.562
--- loncom/lond:1.561	Mon Mar 30 11:04:03 2020
+++ loncom/lond	Mon May  4 17:05:10 2020
@@ -2,7 +2,7 @@
 # The LearningOnline Network
 # lond "LON Daemon" Server (port "LOND" 5663)
 #
-# $Id: lond,v 1.561 2020/03/30 11:04:03 raeburn Exp $
+# $Id: lond,v 1.562 2020/05/04 17:05:10 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -65,7 +65,7 @@
 my $status='';
 my $lastlog='';
 
-my $VERSION='$Revision: 1.561 $'; #' stupid emacs
+my $VERSION='$Revision: 1.562 $'; #' stupid emacs
 my $remoteVERSION;
 my $currenthostid="default";
 my $currentdomainid;
@@ -4887,9 +4887,9 @@
             next if ($filename=~/^\./);
             next if ($filename=~/^publicuser_/);
             next if ($filename=~/^[a-f0-9]+_(linked|lti_\d+)\.id$/);
-            if ($filename =~ /^($LONCAPA::match_user)_\d+_($LONCAPA::match_domain)_/) {
+            if ($filename =~ /^($LONCAPA::match_username)_\d+_($LONCAPA::match_domain)_/) {
                 my ($uname,$udom) = ($1,$2);
-                next unless (-e "$perlvar{'lonDaemons'}/$uname$dbsuffix");
+                next unless (-e "$perlvar{'lonDaemons'}/tmp/$uname$dbsuffix");
                 my $mtime = (stat("$perlvar{'lonIDsDir'}/$filename"))[9];
                 my $since=$now-$mtime;
                 if ($lastactivity < 0) {




More information about the LON-CAPA-cvs mailing list