Commit c40bee1a authored by Joanne Hugé's avatar Joanne Hugé

Show lost packets on exit

parent 394d746c
...@@ -327,8 +327,13 @@ static void print_histograms() { ...@@ -327,8 +327,13 @@ static void print_histograms() {
static void sigint_handler(int sig_num) { static void sigint_handler(int sig_num) {
(void)sig_num; (void)sig_num;
if (enable_histograms) if (enable_histograms)
print_histograms(); print_histograms();
if(param->stats.lost_packets)
fprintf(stderr, "%d packets were lost\n");
exit(EXIT_SUCCESS); exit(EXIT_SUCCESS);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment