RX stats were not printed because of wrong check on PRINT_NONE.

Signed-off-by: Vadim Kochan <vadi...@gmail.com>
Fixes: 5f94671f31c040f ("netsniff-ng: Show total rx stats for multi pcap mode")
---
 netsniff-ng.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/netsniff-ng.c b/netsniff-ng.c
index 3b69c8f..3ae05cf 100644
--- a/netsniff-ng.c
+++ b/netsniff-ng.c
@@ -1119,12 +1119,9 @@ next:
        bug_on(gettimeofday(&end, NULL));
        timersub(&end, &start, &diff);
 
-       if (ctx->print_mode != PRINT_NONE) {
-               dump_rx_stats(ctx, sock, is_v3);
-
-               printf("\r%12lu  sec, %lu usec in total\n",
-                      diff.tv_sec, diff.tv_usec);
-       }
+       dump_rx_stats(ctx, sock, is_v3);
+       printf("\r%12lu  sec, %lu usec in total\n",
+                       diff.tv_sec, diff.tv_usec);
 
        bpf_release(&bpf_ops);
        dissector_cleanup_all();
-- 
2.4.2

-- 
You received this message because you are subscribed to the Google Groups 
"netsniff-ng" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to netsniff-ng+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to