flowtop: Change flows layout to 1-row view
commit28de5698cece520251b966e7e41d256517f97d44
authorVadim Kochan <vadim4j@gmail.com>
Sun, 17 Apr 2016 17:31:25 +0000 (17 20:31 +0300)
committerTobias Klauser <tklauser@distanz.ch>
Mon, 18 Apr 2016 14:35:54 +0000 (18 16:35 +0200)
treeb73a2ef16695463d87104d4e261df5130aacc94d
parentf61f39d3972960d795d3d5e5fe6e16179591e2bb
flowtop: Change flows layout to 1-row view

Changed flows list layout to look more a top-like output
with header and in 1 line. When -s option is specified
then layout changes to 2 lines view including with src peer
info and dst under it on next line.

Also shortified flow state names to allocate less space.

Removed presenter_get_port be cause ports are printed for both peers
separately.

The flow duration time is printed in very short form in one of the
units:
    XXd - days
    XXh - hours
    XXm - minutes
    XXs - seconds

the reason is that it is enough to have actually generic understanding
about flow time in the biggest time unit.

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
flowtop.c