From: Vadim Kochan <[email protected]> Don't hide status bar line when dumping flows but print "[Collecting flows ...]" on the same line.
Really there is no sense to hide this status bar line. Signed-off-by: Vadim Kochan <[email protected]> --- flowtop.c | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/flowtop.c b/flowtop.c index 492d77a..e38cd8e 100644 --- a/flowtop.c +++ b/flowtop.c @@ -968,21 +968,18 @@ static void presenter_screen_update(WINDOW *screen, struct flow_list *fl, maxy -= (2 + 1 * show_src); } - if (is_flow_collecting) { - mvwprintw(screen, 1, 2, "Collecting flows ..."); - } else { - mvwprintw(screen, 1, 2, - "Kernel netfilter flows(%u) for %s%s%s%s%s%s" - "[+%d]", flows, what & INCLUDE_TCP ? "TCP, " : "", - what & INCLUDE_UDP ? "UDP, " : "", - what & INCLUDE_SCTP ? "SCTP, " : "", - what & INCLUDE_DCCP ? "DCCP, " : "", - what & INCLUDE_ICMP && what & INCLUDE_IPV4 ? - "ICMP, " : "", - what & INCLUDE_ICMP && what & INCLUDE_IPV6 ? - "ICMP6, " : "", - skip_lines); - } + mvwprintw(screen, 1, 2, + "Kernel netfilter flows(%u) for %s%s%s%s%s%s" + "[+%d]", flows, what & INCLUDE_TCP ? "TCP, " : "", + what & INCLUDE_UDP ? "UDP, " : "", + what & INCLUDE_SCTP ? "SCTP, " : "", + what & INCLUDE_DCCP ? "DCCP, " : "", + what & INCLUDE_ICMP && what & INCLUDE_IPV4 ? "ICMP, " : "", + what & INCLUDE_ICMP && what & INCLUDE_IPV6 ? "ICMP6, " : "", + skip_lines); + + if (is_flow_collecting) + printw(" [Collecting flows ...]"); rcu_read_unlock(); -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
