From 0db10022c35f893b7c2e226fedface65dd7a2a8d Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Sun, 16 Jun 2013 20:01:42 +0200 Subject: [PATCH] Fixed a bug that prevented a correctly data collection in the 'fail2ban' graph. --- lib/fail2ban.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fail2ban.pm b/lib/fail2ban.pm index ee49f38..ad856dc 100644 --- a/lib/fail2ban.pm +++ b/lib/fail2ban.pm @@ -147,8 +147,8 @@ sub fail2ban_update { if(/^$date/) { my $e = 0; while($e < scalar(my @fl = split(',', $fail2ban->{list}))) { + my $e2 = 0; foreach my $i (split(',', $fail2ban->{desc}->{$e})) { - my $e2 = 0; ($str = trim($i)) =~ s/\[/\\[/; $str =~ s/\]/\\]/; $jails[$e][$e2] = 0 unless defined $jails[$e][$e2];