From af9758f462040cb3ae836fce6bd1f50b01b82bdf Mon Sep 17 00:00:00 2001 From: starnakin Date: Wed, 19 Nov 2025 08:31:30 -0600 Subject: [PATCH] fix: print stats recved / transmited --- src/print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/print.c b/src/print.c index 3aaba4e..f0b71df 100644 --- a/src/print.c +++ b/src/print.c @@ -45,7 +45,7 @@ void print_statistics(struct statistics const *stats, struct setting const *sett printf("%zu packets transmitted, %zu packets received, %.3f%% packet loss\n", stats->packets_sent, stats->packets_received, - ((double) stats->packets_sent) * 100 / (double) stats->packets_received + (double) stats->packets_received * 100 / (double) stats->packets_sent ); }