Weird waiting distribution implemented
This commit is contained in:
parent
df032328e9
commit
af11a2e87f
2 changed files with 9 additions and 4 deletions
|
|
@ -26,7 +26,7 @@ class Capturer:
|
|||
while True:
|
||||
|
||||
if (
|
||||
self.seconds_since_last_try() < minimum_seconds_between_tries
|
||||
self.seconds_since_last_try() < minimum_seconds_between_tries()
|
||||
or not self.in_working_hours()
|
||||
):
|
||||
sleep(Capturer.sleep_time_no_work)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue