--- loncom/cgi/userstatus.pl 2003/09/01 03:37:27 1.7 +++ loncom/cgi/userstatus.pl 2004/01/14 01:39:14 1.9 @@ -1,7 +1,7 @@ #!/usr/bin/perl $|=1; # User Status -# $Id: userstatus.pl,v 1.7 2003/09/01 03:37:27 albertel Exp $ +# $Id: userstatus.pl,v 1.9 2004/01/14 01:39:14 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -50,7 +50,7 @@ sub analyze_time { my $userclass=$actl[0]; if ($since>300) { $color="#222222"; } if ($since>600) { $color="#444444"; } - if ($since>3600) { $color="#666666"; $userclass=$actl[1]; } + if ($since>1800) { $color="#666666"; $userclass=$actl[1]; } if ($since>7200) { $color="#888888"; } if ($since>21600) { $color="#AAAAAA"; $userclass=$actl[2]; } return ($color,$userclass); @@ -110,11 +110,13 @@ sub main { $userinfo{'user.name'}."\@".$userinfo{'user.domain'}. ")\nLogin time: ". localtime($userinfo{'user.login.time'}). - ' Browser: '.$userinfo{'browser.type'}." Client: ". + ' Browser: '.$userinfo{'browser.type'}. + " on ".$userinfo{'browser.os'}."Client: ". $userinfo{'request.host'}."
\nRole: ". $userinfo{'request.role'}." "; } &add_count('Browser',$userinfo{'browser.type'},$userinfo{'browser.version'}); + &add_count('OS',$userinfo{'browser.os'}); if ($userinfo{'request.course.id'}) { my $cid=$userinfo{'request.course.id'}; my $coursename= $userinfo{'course.'.$cid.'.description'}. @@ -144,6 +146,7 @@ sub main { &showact('Domain',%usercount); &showact('Course',%usercount); &show('Browser',%usercount); + &show('OS',%usercount); # print "\n"; print "Load Average: ".$loadavg;