store total_duration in ms
This commit is contained in:
@@ -21,7 +21,7 @@ class WorkerJob():
|
|||||||
self.nextcheck = None
|
self.nextcheck = None
|
||||||
self.duration = None
|
self.duration = None
|
||||||
self.success_count = success_count
|
self.success_count = success_count
|
||||||
self.total_duration = total_duration
|
self.total_duration = total_duration if not isinstance(total_duration, float) else (total_duration * 1000)
|
||||||
|
|
||||||
def is_drone_bl(self, proxy):
|
def is_drone_bl(self, proxy):
|
||||||
p = proxy.split(':')[0]
|
p = proxy.split(':')[0]
|
||||||
@@ -78,7 +78,7 @@ class WorkerJob():
|
|||||||
self.duation = duration
|
self.duation = duration
|
||||||
self.failcount = 0
|
self.failcount = 0
|
||||||
self.success_count = self.success_count + 1
|
self.success_count = self.success_count + 1
|
||||||
self.total_duration = self.total_duration + duration
|
self.total_duration = self.total_duration + (duration*1000)
|
||||||
_log('%s://%s; c: %s; d: %d sec(s); tor: %s; srv: %s; recv: %s' % (proto, self.proxy, match, duration, tor, srv, recv), 'xxxxx')
|
_log('%s://%s; c: %s; d: %d sec(s); tor: %s; srv: %s; recv: %s' % (proto, self.proxy, match, duration, tor, srv, recv), 'xxxxx')
|
||||||
except KeyboardInterrupt as e:
|
except KeyboardInterrupt as e:
|
||||||
raise e
|
raise e
|
||||||
|
|||||||
Reference in New Issue
Block a user