[LON-CAPA-cvs] cvs: loncom /auth lonlogin.pm
matthew
lon-capa-cvs@mail.lon-capa.org
Fri, 07 May 2004 14:25:17 -0000
matthew Fri May 7 10:25:17 2004 EDT
Modified files:
/loncom/auth lonlogin.pm
Log:
$loadavg does not need to be expressed to 4 digits beyond the decimal point.
1 digit is probably enough.
Index: loncom/auth/lonlogin.pm
diff -u loncom/auth/lonlogin.pm:1.56 loncom/auth/lonlogin.pm:1.57
--- loncom/auth/lonlogin.pm:1.56 Tue Mar 16 15:42:50 2004
+++ loncom/auth/lonlogin.pm Fri May 7 10:25:17 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Login Screen
#
-# $Id: lonlogin.pm,v 1.56 2004/03/16 20:42:50 albertel Exp $
+# $Id: lonlogin.pm,v 1.57 2004/05/07 14:25:17 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -134,7 +134,7 @@
$loadavg=<$loadfile>;
}
$loadavg =~ s/\s.*//g;
- my $loadpercent=100*$loadavg/$loadlim;
+ my $loadpercent=sprintf("%.1f",100*$loadavg/$loadlim);
my $userloadpercent=&Apache::lonnet::userload();
# ------------------------------------------------------- Do the load balancing