Menu

#13 Keep CHECK_INTERVAL consistent

open
nobody
None
2024-09-06
2024-09-06
Anonymous
No

Originally created by: maranik

I’d like to suggest a small improvement: currently, using await asyncio.sleep(CHECK_INTERVAL) doesn’t take into account the time spent during the checks. A more accurate approach might be something like await asyncio.sleep(max(0, CHECK_INTERVAL - time_spent)) to compensate for that time.

PS: @harsxv, thank you very much for this amazing and straightforward project!

Discussion


Log in to post a comment.

MongoDB Logo MongoDB