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