From: eldy <> Date: Thu, 4 Mar 2004 11:59:43 +0000 (+0000) Subject: Size of mail bandwidth for error mails was not counted in the error chart. X-Git-Tag: AWSTATS_6_1_BETA~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c27ff71f077b2e58cf40569a0086ea40a1d172ce;p=thirdparty%2FAWStats.git Size of mail bandwidth for error mails was not counted in the error chart. --- diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index f378f82f..ccdaeeb5 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -6074,7 +6074,7 @@ if ($UpdateStats && $FrameName ne 'index' && $FrameName ne 'mainleft') { # Updat elsif ($LogType eq 'M') { # Mail record if (! $ValidSMTPCodes{$field[$pos_code]}) { # Code is not valid $_errors_h{$field[$pos_code]}++; - #$_errors_k{$field[$pos_code]}+=int($field[$pos_size]); # Useless since pos_size is often 0 or ? when error + $_errors_k{$field[$pos_code]}+=int($field[$pos_size]); # Size is often 0 when error if ($Debug) { debug(" Record stored in the status code chart (status code=$field[$pos_code])",2); } $countedtraffic=1; if ($PageBool) { $_time_nv_p[$hourrecord]++; }