From 8c4ca29577161232431e3f229c2769e708d3aced Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Mon, 14 Oct 2013 16:15:36 -0400 Subject: [PATCH] BF: correct comparison while comparing for "too many lines" --- fail2ban-regex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fail2ban-regex b/fail2ban-regex index 27bfdd59..7c525157 100755 --- a/fail2ban-regex +++ b/fail2ban-regex @@ -289,7 +289,7 @@ class Fail2banRegex(object): regexlist = self._ignoreregex l = lstats[ltype + '_lines_timeextracted'] lines = len(l)*len(regexlist) - if lines > 20 or getattr(self, '_print_all_' + ltype): + if lines < 20 or getattr(self, '_print_all_' + ltype): ans = [[]] for arg in [l, regexlist]: ans = [ x + [y] for x in ans for y in arg ]