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

to allow for some tests to work correctly
This commit is contained in:
Yaroslav Halchenko 2012-11-05 20:09:15 -05:00
parent 09355663f7
commit 8e64c281dd

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))