Division by zero on empty input

Code reviewMedium15 min

Your task

Review this Python code that summarizes latency once per scrape interval.

scrape runs on a fixed timer regardless of whether any traffic arrived in the window.