From: eldy <> Date: Thu, 27 Feb 2003 11:21:23 +0000 (+0000) Subject: Added screen size report. X-Git-Tag: AWSTATS_5_5_BETA~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8e874d60101a3a88bb3bd5fb9dccb94d2ded483;p=thirdparty%2FAWStats.git Added screen size report. --- diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index 5fa70fd3..de2f01c9 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -8266,11 +8266,11 @@ if (scalar keys %HTMLOutput) { print "$Center 
\n"; my $Totalh=0; foreach my $key (keys %_screensize_h) { $Totalh+=$_screensize_h{$key}; } my $title="$Message[135]"; - &tab_head("$title",19); + &tab_head("$title",0); print "$Message[135]$Message[15]\n"; my $total_h=0; my $count=0; - &BuildKeyList($MaxNbOf{'ScreenSizes'},$MinHit{'ScreenSizes'},\%_screensize_h,\%_screensize_h); + &BuildKeyList($MaxNbOf{'ScreenSizesShown'},$MinHit{'ScreenSize'},\%_screensize_h,\%_screensize_h); foreach my $key (@keylist) { my $p=' '; if ($Totalh) { $p=int($_screensize_h{$key}/$Totalh*1000)/10; $p="$p %"; } @@ -8288,11 +8288,11 @@ if (scalar keys %HTMLOutput) { print "\n"; $count++; } - $rest_h=$Totalh-$total_s; + $rest_h=$Totalh-$total_h; if ($rest_h > 0) { # All others sessions my $p=0; if ($Totalh) { $p=int($rest_h/$Totalh*1000)/10; } - print "$Message[0]"; + print "$Message[2]"; print "".($rest_h?"$p %":" ").""; print "\n"; }