🏗️」 wip: TODO

This commit is contained in:
2025-08-16 21:43:15 +02:00
parent ac8e8638e9
commit 4c13d78559
4 changed files with 19 additions and 0 deletions

View File

@ -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());
}