From 2f928fcfcb0965419cff3f6ff89757d2f0512c88 Mon Sep 17 00:00:00 2001 From: Vadim Kochan Date: Wed, 16 Dec 2015 22:12:08 +0200 Subject: flowtop: Indicate if 'active' flows mode is selected Show 'Active' filter status if 'a' was pressed. Signed-off-by: Vadim Kochan Signed-off-by: Tobias Klauser --- flowtop.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'flowtop.c') diff --git a/flowtop.c b/flowtop.c index 52e4bef..d90e1ee 100644 --- a/flowtop.c +++ b/flowtop.c @@ -1146,6 +1146,7 @@ static void draw_flows(WINDOW *screen, struct flow_list *fl, } mvwprintw(screen, 1, 2, "Kernel netfilter flows(%u) for ", flows); + if (what & INCLUDE_IPV4) printw("IPv4,"); if (what & INCLUDE_IPV6) @@ -1162,6 +1163,9 @@ static void draw_flows(WINDOW *screen, struct flow_list *fl, printw("ICMP,"); if (what & INCLUDE_ICMP && what & INCLUDE_IPV6) printw("ICMP6,"); + if (show_active_only) + printw("Active,"); + printw(" [+%d]", skip_lines); if (is_flow_collecting) -- cgit v1.2.3-54-g00ecf