From 89b2f76701ebefe2719a40567e7657e8fd9dabae Mon Sep 17 00:00:00 2001 From: Lars Kruse Date: Fri, 25 Nov 2016 02:18:29 +0100 Subject: [PATCH] [apache_logparser] fix syntax error of for-loop --- plugins/apache/apache_vhosts/apache_logparser | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/apache/apache_vhosts/apache_logparser b/plugins/apache/apache_vhosts/apache_logparser index 22456298..1f3ddcb7 100644 --- a/plugins/apache/apache_vhosts/apache_logparser +++ b/plugins/apache/apache_vhosts/apache_logparser @@ -169,7 +169,7 @@ while (1) { $old{$vpm}{'max_bytes'}=max($old{$vpm}{'max_bytes'},$temp{$vpm}{'max_bytes'}) || 0; # reset local counters - foreach my $check qw(requests bytes time max_bytes avg_bytes max_time avg_time) { + foreach my $check (qw(requests bytes time max_bytes avg_bytes max_time avg_time)) { $temp{$vpm}{$check}=0; }