BF: correct comparison while comparing for "too many lines"

pull/397/head
Yaroslav Halchenko 11 years ago
parent 123ad1cc9c
commit 8c4ca29577

@ -289,7 +289,7 @@ class Fail2banRegex(object):
regexlist = self._ignoreregex regexlist = self._ignoreregex
l = lstats[ltype + '_lines_timeextracted'] l = lstats[ltype + '_lines_timeextracted']
lines = len(l)*len(regexlist) lines = len(l)*len(regexlist)
if lines > 20 or getattr(self, '_print_all_' + ltype): if lines < 20 or getattr(self, '_print_all_' + ltype):
ans = [[]] ans = [[]]
for arg in [l, regexlist]: for arg in [l, regexlist]:
ans = [ x + [y] for x in ans for y in arg ] ans = [ x + [y] for x in ans for y in arg ]

Loading…
Cancel
Save