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

albertel lon-capa-cvs-allow@mail.lon-capa.org
Tue, 09 Oct 2007 16:27:12 -0000


albertel		Tue Oct  9 12:27:12 2007 EDT

  Modified files:              
    /loncom/auth	lonlogin.pm 
  Log:
  - library servers can offload
  
  
Index: loncom/auth/lonlogin.pm
diff -u loncom/auth/lonlogin.pm:1.96 loncom/auth/lonlogin.pm:1.97
--- loncom/auth/lonlogin.pm:1.96	Mon Oct  1 21:09:59 2007
+++ loncom/auth/lonlogin.pm	Tue Oct  9 12:27:08 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Login Screen
 #
-# $Id: lonlogin.pm,v 1.96 2007/10/02 01:09:59 albertel Exp $
+# $Id: lonlogin.pm,v 1.97 2007/10/09 16:27:08 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -148,9 +148,8 @@
     my $otherserver= &Apache::lonnet::absolute_url($host_name);
     my $firsturl=
     ($env{'request.firsturl'}?$env{'request.firsturl'}:$env{'form.firsturl'});
-# ---------------------------------------- Are we access server and overloaded?
-    if (($role eq 'access') &&
-	(($userloadpercent>100.0)||($loadpercent>100.0))) {
+# ---------------------------------------------------------- Are we overloaded?
+    if ((($userloadpercent>100.0)||($loadpercent>100.0))) {
         my $unloaded=Apache::lonnet::spareserver($loadpercent,$userloadpercent);
 	if ($unloaded) { $otherserver=$unloaded; }
     }