Skip to content

Commit

Permalink
added log statement about throttle per iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianmordig committed Aug 17, 2023
1 parent f956e31 commit 0ca9a9e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ru/ru_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ def simple_analysis(
logger.info(s1.format(r, t1 - t0))
# limit the rate at which we make requests
if t0 + throttle > t1:
logger.info("Throttle: {:.5f}s".format(throttle + t0 - t1))
time.sleep(throttle + t0 - t1)

if interval_checker + interval < t1:
Expand Down

0 comments on commit 0ca9a9e

Please sign in to comment.