diff --git a/proxywatchd.py b/proxywatchd.py index c410f93..2e81b2a 100644 --- a/proxywatchd.py +++ b/proxywatchd.py @@ -279,7 +279,7 @@ class Proxywatchd(): self.isoldies = True ## disable tor safeguard for old proxies if self.tor_safeguard: self.tor_safeguard = False - rows = self.mysqlite.execute(q, (config.watchd.max_fail, config.watchd.max_fail*2, config.watchd.checktime, config.watchd.oldies_checktime, time.time())).fetchall() + rows = self.mysqlite.execute(q, (config.watchd.max_fail, config.watchd.max_fail + round( config.watchd.max_fail/2), config.watchd.checktime, config.watchd.oldies_checktime, time.time())).fetchall() return rows def prepare_jobs(self):