summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2015-08-04 01:52:07 +0300
committerTobias Klauser <tklauser@distanz.ch>2015-08-04 09:17:06 +0200
commit87ffedefb14f103538e98dc4983fd8fcdbe28768 (patch)
tree08d7ea63b682b06df99868f3bb567b5e00e53198
parentbedaa6753463f1c707b42af5f4aac07f1a873525 (diff)
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 <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r--flowtop.c27
1 files 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();