--- /usr/local/src/awstats/wwwroot/cgi-bin/awstats.pl 2005-08-03 16:28:01.000000000 +0200 +++ awstats.pl 2005-08-19 18:07:45.000000000 +0200 @@ -7,6 +7,9 @@ # See AWStats documentation (in docs/ directory) for all setup instructions. #------------------------------------------------------------------------------ # $Revision: 1.839 $ - $Author: eldy $ - $Date: 2005/07/19 22:36:41 $ +# 2005-08-19 Sean Carlos http://www.antezeta.com/awstats.html: +# added separate "lin" operating system to support breakdown of Linux distributions in operating_systems.pm +# spell out operating system in osdetail report (win -> Windows, mac -> Macintosh, lin -> linux) require 5.005; #$|=1; @@ -242,7 +245,7 @@ /; @MiscListOrder=('AddToFavourites','JavascriptDisabled','JavaEnabled','DirectorSupport','FlashSupport','RealPlayerSupport','QuickTimeSupport','WindowsMediaPlayerSupport','PDFSupport'); %MiscListCalc=('TotalMisc'=>'','AddToFavourites'=>'u','JavascriptDisabled'=>'hm','JavaEnabled'=>'hm','DirectorSupport'=>'hm','FlashSupport'=>'hm','RealPlayerSupport'=>'hm','QuickTimeSupport'=>'hm','WindowsMediaPlayerSupport'=>'hm','PDFSupport'=>'hm'); -@OSFamily=('win','mac'); +@OSFamily=('win','mac','lin'); %BrowsersFamily=('msie'=>1,'firefox'=>2,'netscape'=>3); @SessionsRange=('0s-30s','30s-2mn','2mn-5mn','5mn-15mn','15mn-30mn','30mn-1h','1h+'); %SessionsAverage=('0s-30s',15,'30s-2mn',75,'2mn-5mn',210,'5mn-15mn',600,'15mn-30mn',1350,'30mn-1h',2700,'1h+',3600); @@ -8360,7 +8363,12 @@ foreach my $key (reverse sort keys %_os_h) { if ($key =~ /^$family(.*)/i) { if (! $familyheadershown) { - print ""; + my $family_name=''; + if ($family eq 'win') { $family_name="Windows"; } + if ($family eq 'mac') { $family_name="Macintosh"; } + if ($family eq 'lin') { $family_name="Linux"; } + # print ""; + print ""; print ""; print "\n"; $familyheadershown=1; @@ -9936,6 +9944,7 @@ # TODO Use OSFamilyLib if ($libos eq 'win') { $libos="Windows"; } if ($libos eq 'mac') { $libos="Macintosh"; } + if ($libos eq 'lin') { $libos="Linux"; } print "\n"; } $total_h += $new_os_h{$key};
".uc($family)."
".uc($family)."
$family_name ".int($totalfamily_h{$family})." $p  
[image text to add] $libos $new_os_h{$key} $p