From 64534948397b3042438795ea887e9afeffd9d890 Mon Sep 17 00:00:00 2001 From: mickael Date: Fri, 4 Jan 2019 20:00:24 +0000 Subject: [PATCH] bugfix: wrong 'next-check' value inserted in db the "next check" value for working proxy were set to "time.time()", which (could have) caused the working proxies to be checked sooner than expected. --- includes/proxywatchd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/proxywatchd.py b/includes/proxywatchd.py index 63e016d..1e2fa14 100644 --- a/includes/proxywatchd.py +++ b/includes/proxywatchd.py @@ -141,7 +141,7 @@ class Proxywatchd(Thread): else: match = 'unknown' #dronebl = self.is_drone_bl(proxy[0]) - sqlite_requests.append( (0, time.time(), 1, match, proto, duration, proxy[0],)) + sqlite_requests.append( (0, nextcheck, 1, match, proto, duration, proxy[0],)) _log('%s://%s; c: %s; d: %d sec(s); tor: %s; srv: %s; recv: %s' % (proto, proxy[0], match, duration, tor, srv, recv), threadid) # bad data