It is easier to differentiate bytes/pkts counters with rate counters if to use different colors.
Signed-off-by: Vadim Kochan <[email protected]> --- flowtop.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/flowtop.c b/flowtop.c index ff629ab..3dd8056 100644 --- a/flowtop.c +++ b/flowtop.c @@ -900,13 +900,19 @@ static void presenter_print_counters(uint64_t bytes, uint64_t pkts, printw(" -> ("); attron(COLOR_PAIR(color)); printw("%"PRIu64" pkts", pkts); - if (rate_pkts) + if (rate_pkts) { + attron(COLOR_PAIR(3)); printw("(%.1fpps)", rate_pkts); + attron(COLOR_PAIR(color)); + } printw(", %s", bandw2str(bytes, bytes_str, sizeof(bytes_str) - 1)); - if (rate_bytes) + if (rate_bytes) { + attron(COLOR_PAIR(3)); printw("(%s)", rate2str(rate_bytes, bytes_str, sizeof(bytes_str) - 1)); + attron(COLOR_PAIR(color)); + } attroff(COLOR_PAIR(color)); printw(")"); } -- 2.6.1 -- 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.
