Average Ping Latency Measurement | Generated by AI
Done. Changes:
get_ping_delay(host, count=10)— now runsping -c 10and parses theround-trip min/avg/max/stddevline, returns the avg (index [1])- Timeout scaled to
count + 2seconds to accommodate 10 pings - Output now shows
avg X.X msto make it clear it’s averaged over 10 pings - Scan phase (is_host_up) still uses fast single-ping,
--delayonly runs 10 pings for confirmed live hosts
Example output:
192.168.1.1 is up avg 19.9 ms