Bug fix, syntax erro
This commit is contained in:
parent
f66c978466
commit
8ad46c0481
1 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@ class TorInstance():
|
||||||
self.session = None
|
self.session = None
|
||||||
self.process = None
|
self.process = None
|
||||||
|
|
||||||
def run(self):
|
async def run(self):
|
||||||
""" Runs the Tor Instance on the history.
|
""" Runs the Tor Instance on the history.
|
||||||
"""
|
"""
|
||||||
t_start = time.now()
|
t_start = time.now()
|
||||||
|
@ -62,7 +62,7 @@ class TorInstance():
|
||||||
await(self.query(item[0]))
|
await(self.query(item[0]))
|
||||||
t_end = time.now()
|
t_end = time.now()
|
||||||
diff = (history[0][1] - item[0]) - (t_end - t_start)
|
diff = (history[0][1] - item[0]) - (t_end - t_start)
|
||||||
if diff > 0
|
if diff > 0:
|
||||||
sleep(diff)
|
sleep(diff)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue