「🏗️」 wip: TODO
This commit is contained in:
@ -61,10 +61,12 @@ bool check_for_timeout(struct timeval start, options_t opt) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// TODO: fix the packet loss
|
||||
void print_stats(void) {
|
||||
printf("--- %s ping statistics ---\n", address);
|
||||
printf("%d packets transmitted, %d packets received, %.0f%% packet loss\n",
|
||||
tx_count, rx_count, (tx_count - rx_count / 2.0) * 100);
|
||||
// TODO: fix this shit
|
||||
printf("round-trip min/avg/max/stddev = %.3f/%.3f/%.3f/%.3f\n",
|
||||
get_min_rtt(), get_avg_rtt(), get_max_rtt(), get_stddev_rtt());
|
||||
}
|
||||
|
Reference in New Issue
Block a user