fix: packet lost %

This commit is contained in:
2025-12-18 05:55:33 -06:00
parent dba44e76e0
commit 9222eba0ae

View File

@@ -48,7 +48,7 @@ void print_statistics(struct statistics const *stats, struct setting const *sett
printf("%zu packets transmitted, %zu packets received, %.3f%% packet loss\n", printf("%zu packets transmitted, %zu packets received, %.3f%% packet loss\n",
stats->packets_sent, stats->packets_sent,
stats->packets_received, stats->packets_received,
((double) stats->packets_sent - stats->packets_received) * 100 / stats->packets_sent ((double) stats->packets_sent - (stats->packets_sent - stats->packets_received)) * 100 / stats->packets_sent
); );
} }