[LON-CAPA-cvs] cvs: loncom(version_2_11_X) / loncron

raeburn raeburn at source.lon-capa.org
Fri Oct 20 09:38:34 EDT 2017


raeburn		Fri Oct 20 13:38:34 2017 EDT

  Modified files:              (Branch: version_2_11_X)
    /loncom	loncron 
  Log:
  - For 2.11
    Backport 1.105
  
  
Index: loncom/loncron
diff -u loncom/loncron:1.103 loncom/loncron:1.103.2.1
--- loncom/loncron:1.103	Sun Sep 20 18:31:21 2015
+++ loncom/loncron	Fri Oct 20 13:38:34 2017
@@ -2,7 +2,7 @@
 
 # Housekeeping program, started by cron, loncontrol and loncron.pl
 #
-# $Id: loncron,v 1.103 2015/09/20 18:31:21 raeburn Exp $
+# $Id: loncron,v 1.103.2.1 2017/10/20 13:38:34 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -644,9 +644,15 @@
 
     my $unsend=0;
 
+    my %hostname = &Apache::lonnet::all_hostnames();
+    my $numhosts = scalar(keys(%hostname));
+
     my $dfh=IO::File->new("$perlvar{'lonDaemons'}/logs/lonnet.perm.log");
     while (my $line=<$dfh>) {
 	my ($time,$sdf,$dserv,$dcmd)=split(/:/,$line);
+        if ($numhosts) {
+            next unless ($hostname{$dserv});
+        }
 	if ($sdf eq 'F') { 
 	    my $local=localtime($time);
 	    &log($fh,"<b>Failed: $time, $dserv, $dcmd</b><br />");
@@ -673,8 +679,6 @@
     }
     &log($fh,"</pre>\n");
     close (DFH);
-    my %hostname = &Apache::lonnet::all_hostnames();
-    my $numhosts = scalar(keys(%hostname));
 # pong to all servers that have delayed messages
 # this will trigger a reverse connection, which should flush the buffers
     foreach my $tryserver (sort(keys(%servers))) {




More information about the LON-CAPA-cvs mailing list