Skip to content

Commit

Permalink
adding unique ids to log statements to analyze the logfile later on
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianmordig committed Aug 17, 2023
1 parent 0ca9a9e commit a89ea58
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ru/ru_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,11 +384,13 @@ def simple_analysis(

t1 = timer()
if r > 0:
s1 = "{}R/{:.5f}s"
s1 = "ReadFish processing speed: {}R/{:.5f}s"
logger.info(s1.format(r, t1 - t0))

# also plot negative throttle to see how much delay there is
logger.info("ReadFish throttle: {:.5f}s".format(throttle + t0 - t1))
# 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 a89ea58

Please sign in to comment.