From 298987612cbd9627fbd79b096c96d03cfd22c059 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 10 Feb 2021 22:25:41 +0100 Subject: [PATCH] proxywatchd: do not test that much oldies --- proxywatchd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):