Diff for /loncom/cgi/userstatus.pl between versions 1.5 and 1.7

version 1.5, 2003/08/27 18:20:11 version 1.7, 2003/09/01 03:37:27
Line 1 Line 1
 #!/usr/bin/perl  #!/usr/bin/perl
 $|=1;  $|=1;
 # The LearningOnline Network with CAPA  
 # User Status  # User Status
 # (Versions  # $Id$
 # (Running loncron  #
 # 09/06/01 Gerd Kortemeyer)  # Copyright Michigan State University Board of Trustees
 # 02/18/02,02/19/02 Gerd Kortemeyer)  #
   # This file is part of the LearningOnline Network with CAPA (LON-CAPA).
   #
   # LON-CAPA is free software; you can redistribute it and/or modify
   # it under the terms of the GNU General Public License as published by
   # the Free Software Foundation; either version 2 of the License, or
   # (at your option) any later version.
   #
   # LON-CAPA is distributed in the hope that it will be useful,
   # but WITHOUT ANY WARRANTY; without even the implied warranty of
   # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   # GNU General Public License for more details.
   #
   # You should have received a copy of the GNU General Public License
   # along with LON-CAPA; if not, write to the Free Software
   # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   #
   # /home/httpd/html/adm/gpl.txt
   #
   # http://www.lon-capa.org/
   #
   
   
 use strict;  use strict;
 use lib '/home/httpd/lib/perl/';  use lib '/home/httpd/lib/perl/';
Line 129  sub main { Line 149  sub main {
  print "<b>Load Average:<b> ".$loadavg;   print "<b>Load Average:<b> ".$loadavg;
  print "</body></html>";   print "</body></html>";
     } else {      } else {
  foreach (sort keys %usercount) {   foreach my $l1 (sort keys %usercount) {
     print $_.'='.$usercount{$_}.'&';      foreach my $l2 (sort keys %{$usercount{$l1}}) {
    foreach my $l3 (sort keys %{$usercount{$l1}{$l2}}) {
       print $l1.'_'.$l2.'_'.$l3.'='.$usercount{$l1}{$l2}{$l3}.'&';
    }
       }
    }
    #clusterstatus values
    foreach my $act (@actl) {
       print "$act=".$usercount{'Overall'}{'all'}{$act}.'&';
  }   }
  print 'loadavg='.$loadavg;   print 'loadavg='.$loadavg;
     }      }

Removed from v.1.5  
changed lines
  Added in v.1.7


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>