diff --git a/src/print.c b/src/print.c index d9460f9..ea40226 100644 --- a/src/print.c +++ b/src/print.c @@ -47,9 +47,8 @@ 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_received * 100 / (double) stats->packets_sent + ((double) stats->packets_sent - stats->packets_received) * 100 / stats->packets_sent ); - // TODO fix packet lost calcul } static const char *get_message_description(const uint8_t type, const uint8_t code)