From 87ffedefb14f103538e98dc4983fd8fcdbe28768 Mon Sep 17 00:00:00 2001 From: Vadim Kochan Date: Tue, 4 Aug 2015 01:52:07 +0300 Subject: flowtop: Don't hide status bar while dumping flows 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 Signed-off-by: Tobias Klauser --- 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(); -- cgit v1.2.3-54-g00ecf