From: Steve Campbell Date: Thu, 30 Jun 2005 09:59:34 +0000 (+0000) Subject: Bugfix for 1.42 pattern histograms with -h0 specified. Steve Campbell. X-Git-Tag: exim-4_52~4 X-Git-Url: https://git.exim.org/users/jgh/exim.git/commitdiff_plain/81aad8c9cc6aa1ad9653966ecfea657056111d57?hp=608bc29d5c63da2d9f67d225ed4eabe506d54390 Bugfix for 1.42 pattern histograms with -h0 specified. Steve Campbell. --- diff --git a/src/src/eximstats.src b/src/src/eximstats.src index 13382f402..015fc5806 100644 --- a/src/src/eximstats.src +++ b/src/src/eximstats.src @@ -1,5 +1,5 @@ #!PERL_COMMAND -w -# $Cambridge: exim/src/src/eximstats.src,v 1.8 2005/06/29 15:35:09 steve Exp $ +# $Cambridge: exim/src/src/eximstats.src,v 1.9 2005/06/30 09:59:34 steve Exp $ # Copyright (c) 2001 University of Cambridge. # See the file NOTICE for conditions of use and distribution. @@ -223,6 +223,9 @@ # 2005-06-24 V1.42 Steve Campbell # Added Histograms for user specified patterns. # +# 2005-06-30 V1.43 Steve Campbell +# Bug fix for V1.42 with -h0 specified. Spotted by Chris Lear. +# # # For documentation on the logfile format, see # http://www.exim.org/exim-html-4.50/doc/html/spec_48.html#IX2793 @@ -515,7 +518,7 @@ use vars qw($WEEK $DAY $HOUR $MINUTE); @days_per_month = (0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334); $gig = 1024 * 1024 * 1024; -$VERSION = '1.42'; +$VERSION = '1.43'; # How much space do we allow for the Hosts/Domains/Emails/Edomains column headers? $COLUMN_WIDTHS = 8; @@ -1766,12 +1769,10 @@ sub generate_parser { my $user_pattern_index = 0; foreach (@user_patterns) { $user_pattern_totals[$user_pattern_index] = 0; - $parser .= < 0); + $parser .= " }\n"; $user_pattern_index++; } @@ -3546,7 +3547,7 @@ if ($hist_opt > 0) } @dt_all_bin = (0) x $hist_number; @dt_remote_bin = (0) x $hist_number; - } +} #$queue_unknown = 0;