BF: in code we should use MyTime wrapper instead of time module directly

to allow for some tests to work correctly
pull/64/merge
Yaroslav Halchenko 2012-11-05 20:09:15 -05:00
parent 09355663f7
commit 8e64c281dd
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ class Filter(JailThread):
# to enable banip fail2ban-client BAN command
def addBannedIP(self, ip):
unixTime = time.time()
unixTime = MyTime.time()
for i in xrange(self.failManager.getMaxRetry()):
self.failManager.addFailure(FailTicket(ip, unixTime))