]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Size of mail bandwidth for error mails was not counted in the error chart.
authoreldy <>
Thu, 4 Mar 2004 11:59:43 +0000 (11:59 +0000)
committereldy <>
Thu, 4 Mar 2004 11:59:43 +0000 (11:59 +0000)
wwwroot/cgi-bin/awstats.pl

index f378f82f089fa596e132e8c71faa7ad857463620..ccdaeeb584909a199f4d535528c7445c135c3a68 100644 (file)
@@ -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]++; }