Thuban
2017-04-18 a11218715d122662cddcf35c424290be146f2a43
change watch time
1 files modified
2 ■■■ changed files
vilain.py 2 ●●● patch | view | raw | blame | history
vilain.py
@@ -187,7 +187,7 @@
        """
        logger.info('clean_ips sarted with sleeptime={}'.format(self.sleeptime))
        while True:
            await asyncio.sleep(self.sleeptime)
            await asyncio.sleep(self.watch_while)
            to_remove = []
            for recorded_ip, data in self.ip_seen_at.items():
                if time.time() - data['time'] >= self.watch_while: