diff options
author | Vadim Kochan <vadim4j@gmail.com> | 2015-12-16 22:12:08 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-12-21 14:31:32 +0100 |
commit | 2f928fcfcb0965419cff3f6ff89757d2f0512c88 (patch) | |
tree | 6f7884ee82e613e89dffc3ece7a6e1ff9293c273 | |
parent | 8fe5a36685c88220157164ac5a5bc002e8eec273 (diff) |
flowtop: Indicate if 'active' flows mode is selected
Show 'Active' filter status if 'a' was pressed.
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r-- | flowtop.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |