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

raeburn raeburn at source.lon-capa.org
Tue May 5 16:24:42 EDT 2020


raeburn		Tue May  5 20:24:42 2020 EDT

  Modified files:              
    /loncom	lond 
  Log:
  - Fix logic.
  
  
Index: loncom/lond
diff -u loncom/lond:1.562 loncom/lond:1.563
--- loncom/lond:1.562	Mon May  4 17:05:10 2020
+++ loncom/lond	Tue May  5 20:24:41 2020
@@ -2,7 +2,7 @@
 # The LearningOnline Network
 # lond "LON Daemon" Server (port "LOND" 5663)
 #
-# $Id: lond,v 1.562 2020/05/04 17:05:10 raeburn Exp $
+# $Id: lond,v 1.563 2020/05/05 20:24:41 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -65,7 +65,7 @@
 my $status='';
 my $lastlog='';
 
-my $VERSION='$Revision: 1.562 $'; #' stupid emacs
+my $VERSION='$Revision: 1.563 $'; #' stupid emacs
 my $remoteVERSION;
 my $currenthostid="default";
 my $currentdomainid;
@@ -4891,11 +4891,10 @@
                 my ($uname,$udom) = ($1,$2);
                 next unless (-e "$perlvar{'lonDaemons'}/tmp/$uname$dbsuffix");
                 my $mtime = (stat("$perlvar{'lonIDsDir'}/$filename"))[9];
-                my $since=$now-$mtime;
                 if ($lastactivity < 0) {
-                    next if ($since <= $lastactivity);
+                    next if ($mtime-$now > $lastactivity);
                 } else {
-                    next if ($since > $lastactivity);
+                    next if ($now-$mtime > $lastactivity);
                 }
                 $sessions{$uname.':'.$udom} = $mtime;
             }




More information about the LON-CAPA-cvs mailing list