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.
This commit is contained in:
mickael
2019-01-04 20:00:24 +00:00
parent 785b7c52a5
commit 6453494839

View File

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