mirror of https://github.com/fail2ban/fail2ban
Update filter.py
parent
17eed32e03
commit
d086317cc8
|
@ -664,7 +664,7 @@ class Filter(JailThread):
|
||||||
# if weird date - we'd simulate now for timeing issue (too large deviation from now):
|
# if weird date - we'd simulate now for timeing issue (too large deviation from now):
|
||||||
delta = int(date - MyTime.time())
|
delta = int(date - MyTime.time())
|
||||||
if abs(delta) > 60:
|
if abs(delta) > 60:
|
||||||
delta /= 60
|
delta //= 60
|
||||||
# log timing issue as warning once per day:
|
# log timing issue as warning once per day:
|
||||||
self._logWarnOnce("_next_simByTimeWarn",
|
self._logWarnOnce("_next_simByTimeWarn",
|
||||||
("Detected a log entry %sm %s the current time in operation mode. "
|
("Detected a log entry %sm %s the current time in operation mode. "
|
||||||
|
|
Loading…
Reference in New Issue