[LON-CAPA-cvs] cvs: loncom(version_1_0_1) /auth lonlogin.pm

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 26 Aug 2003 19:48:41 -0000


albertel		Tue Aug 26 15:48:41 2003 EDT

  Modified files:              (Branch: version_1_0_1)
    /loncom/auth	lonlogin.pm 
  Log:
  - backport 1.47
  
  
Index: loncom/auth/lonlogin.pm
diff -u loncom/auth/lonlogin.pm:1.44.2.1 loncom/auth/lonlogin.pm:1.44.2.2
--- loncom/auth/lonlogin.pm:1.44.2.1	Tue Aug 26 15:47:33 2003
+++ loncom/auth/lonlogin.pm	Tue Aug 26 15:48:41 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Login Screen
 #
-# $Id: lonlogin.pm,v 1.44.2.1 2003/08/26 19:47:33 albertel Exp $
+# $Id: lonlogin.pm,v 1.44.2.2 2003/08/26 19:48:41 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -109,7 +109,8 @@
 # ---------------------------------------- Are we access server and overloaded?
     if (($role eq 'access') &&
 	(($userloadpercent>100.0)||($loadpercent>100.0))) {
-        $otherserver=Apache::lonnet::spareserver($loadpercent,$userloadpercent);
+        my $unloaded=Apache::lonnet::spareserver($loadpercent,$userloadpercent);
+	if ($unloaded) { $otherserver=$unloaded; }
     }
 
 # -------------------------------------------------------- Set login parameters