Skip to main content

parse_ping

Function parse_ping 

Source
pub fn parse_ping(stdout: &str, sent: u32) -> PingStats
Expand description

Parse a ping transcript into PingStats.

Reply times come from time=/time< markers (Windows/Linux/macOS); the loss percentage comes from the summary line (25% loss, Lost = 1 (25% loss), 25% packet loss), falling back to a count-based computation when no summary parsed.