From 1cd2ae4ed07c9010465a0faeb58d920686145ce9 Mon Sep 17 00:00:00 2001 From: starnakin Date: Tue, 16 Dec 2025 07:07:45 -0600 Subject: [PATCH] fix: packet lost calcul --- src/print.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)