diff options
author | Steve Campbell <steve@computurn.com> | 2005-06-30 10:12:42 +0000 |
---|---|---|
committer | Steve Campbell <steve@computurn.com> | 2005-06-30 10:12:42 +0000 |
commit | f2b67a5be25a27b984dc5735c1a0a790a99ef6af (patch) | |
tree | 521d646863448f52d54888204c2e418c28e7f4b4 /src | |
parent | 0793e4edcdcdb346f10794a1b3f344968e39b79d (diff) |
Tidied up some eval()ed code and removed a duplicate pattern match.
Diffstat (limited to 'src')
-rw-r--r-- | src/src/eximstats.src | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/src/eximstats.src b/src/src/eximstats.src index 015fc5806..080bf178f 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.9 2005/06/30 09:59:34 steve Exp $ +# $Cambridge: exim/src/src/eximstats.src,v 1.10 2005/06/30 10:12:42 steve Exp $ # Copyright (c) 2001 University of Cambridge. # See the file NOTICE for conditions of use and distribution. @@ -1769,10 +1769,10 @@ sub generate_parser { my $user_pattern_index = 0; foreach (@user_patterns) { $user_pattern_totals[$user_pattern_index] = 0; - $parser .= " if ($_) {\n"; - $parser .= " \$user_pattern_totals[$user_pattern_index]++ if $_;\n"; - $parser .= " \$user_pattern_interval_count[$user_pattern_index][(\$m_hour*60 + \$m_min)/$hist_interval]++;\n" if ($hist_opt > 0); - $parser .= " }\n"; + $parser .= " if ($_) {\n"; + $parser .= " \$user_pattern_totals[$user_pattern_index]++;\n"; + $parser .= " \$user_pattern_interval_count[$user_pattern_index][(\$m_hour*60 + \$m_min)/$hist_interval]++;\n" if ($hist_opt > 0); + $parser .= " }\n"; $user_pattern_index++; } |