fix: packet lost %
This commit is contained in:
@@ -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",
|
||||
stats->packets_sent,
|
||||
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
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user