]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Replaced Kb/visits to Kb/mails for mail log analysis.
authoreldy <>
Thu, 30 Oct 2003 18:09:54 +0000 (18:09 +0000)
committereldy <>
Thu, 30 Oct 2003 18:09:54 +0000 (18:09 +0000)
docs/awstats_changelog.txt
wwwroot/cgi-bin/awstats.pl

index 6e40cd848ba23946c9846470b44773f2fd2e19f6..bcf04053088db9c5bed8a0e1912e8a92c817d2d4 100644 (file)
@@ -8,6 +8,7 @@ Fixes:
 - Fixed bug 816267.
 - Fixed minor typo errors.
 - Fixed value for ValueSMTPCodes if not defined in config file.
+- Replaced Kb/visits to Kb/mails for mail log analysis.
 
 New features/improvements:
 - logresolvemerge.pl: can use several threads for reverse DNS lookup
index e55798bb23dd876e923f67c662cde0fce6a437c4..9196c9891fb73b127da8ab4d200ab3ef794033e8 100644 (file)
@@ -7993,7 +7993,7 @@ if (scalar keys %HTMLOutput) {
                        if ($TotalUnique > 0) { $RatioVisits=int($TotalVisits/$TotalUnique*100)/100; }
                        if ($TotalVisits > 0) { $RatioPages=int($TotalPages/$TotalVisits*100)/100; }
                        if ($TotalVisits > 0) { $RatioHits=int($TotalHits/$TotalVisits*100)/100; }
-                       if ($TotalVisits > 0) { $RatioBytes=int(($TotalBytes/1024)*100/$TotalVisits)/100; }
+                       if ($TotalVisits > 0) { $RatioBytes=int(($TotalBytes/1024)*100/($LogType eq 'M'?$TotalHits:$TotalVisits))/100; }
        
                        print "<tr bgcolor=\"#$color_TableBGRowTitle\"><td><b>$Message[8]</b></td>\n";
                        print "<td colspan=\"3\">$Message[128]</td>";
@@ -8017,8 +8017,8 @@ if (scalar keys %HTMLOutput) {
                        if ($ShowMonthStats =~ /U/i) { print "<td>".($MonthRequired eq 'all'?"<b><= $TotalUnique</b><br />$Message[129]":"<b>$TotalUnique</b><br />&nbsp;")."</td>"; } else { print "<td>&nbsp;</td>"; }
                        if ($ShowMonthStats =~ /V/i) { print "<td><b>$TotalVisits</b><br />($RatioVisits&nbsp;$Message[52])</td>"; } else { print "<td>&nbsp;</td>"; }
                        if ($ShowMonthStats =~ /P/i) { print "<td><b>$TotalPages</b><br />($RatioPages&nbsp;".lc($Message[56]."/".$Message[12]).")</td>"; } else { print "<td>&nbsp;</td>"; }
-                       if ($ShowMonthStats =~ /H/i) { print "<td><b>$TotalHits</b><br />($RatioHits&nbsp;".lc($Message[57]."/".$Message[12]).")</td>"; } else { print "<td>&nbsp;</td>"; }
-                       if ($ShowMonthStats =~ /B/i) { print "<td><b>".Format_Bytes(int($TotalBytes))."</b><br />($RatioBytes&nbsp;$Message[108]/".lc($Message[12]).")</td>"; } else { print "<td>&nbsp;</td>"; }
+                       if ($ShowMonthStats =~ /H/i) { print "<td><b>$TotalHits</b>".($LogType eq 'M'?"":"<br />($RatioHits&nbsp;".lc($Message[57]."/".$Message[12]).")</td>"); } else { print "<td>&nbsp;</td>"; }
+                       if ($ShowMonthStats =~ /B/i) { print "<td><b>".Format_Bytes(int($TotalBytes))."</b><br />($RatioBytes&nbsp;$Message[108]/".lc($Message[($LogType eq 'M'?149:12)]).")</td>"; } else { print "<td>&nbsp;</td>"; }
                        print "</tr>\n";
        
                        my $colspan=5;