Fixed a bug that prevented a correctly data collection in the 'fail2ban' graph.

This commit is contained in:
Jordi Sanfeliu 2013-06-16 20:01:42 +02:00
parent edf456a317
commit 0db10022c3
1 changed files with 1 additions and 1 deletions

View File

@ -147,8 +147,8 @@ sub fail2ban_update {
if(/^$date/) {
my $e = 0;
while($e < scalar(my @fl = split(',', $fail2ban->{list}))) {
foreach my $i (split(',', $fail2ban->{desc}->{$e})) {
my $e2 = 0;
foreach my $i (split(',', $fail2ban->{desc}->{$e})) {
($str = trim($i)) =~ s/\[/\\[/;
$str =~ s/\]/\\]/;
$jails[$e][$e2] = 0 unless defined $jails[$e][$e2];