]> gitweb.fperrin.net Git - iftop.git/commit
Do traffic accounting in pps
authorFrédéric Perrin <fperrin@brocade.com>
Tue, 31 Mar 2015 14:54:19 +0000 (15:54 +0100)
committerFrédéric Perrin <fperrin@brocade.com>
Sat, 11 Apr 2015 18:59:10 +0000 (19:59 +0100)
commit93280d4777ec65285ff263a4820956244fcd0004
tree5598efd1c8ac78f62180ffd9c87d74de02b5eb81
parentee672060787e3f7023ff0d99f9c546a034bd89bf
Do traffic accounting in pps

Add a "-u unit" CLI option, as well as a "bandwidth-unit" configuration file
option. With "-u packets", traffic is accounted using packets per second; the
other options are "-u bits" and "-u bytes".

"-B" is still recognized as synonym to "-u bytes".

The default is "-u bits", keeping the current behaviour of iftop (everything
is in bits/s, except the cumulative totals).
cfgfile.c
iftop.8
iftop.c
options.c
options.h
tui.c
ui.c
ui_common.c
ui_common.h