summaryrefslogtreecommitdiff
path: root/ui_common.h
diff options
context:
space:
mode:
authorPaul Warren <pdw@ex-parrot.com>2017-01-04 23:03:34 +0000
committerPaul Warren <pdw@ex-parrot.com>2017-01-04 23:03:34 +0000
commit9addd978c444aabfc2af6fa888436ac00770a4c8 (patch)
treec2fb436e93b86c5395331b1e59be22624d04223a /ui_common.h
parenteb087b0c831bcae116f4fab6c861adce54fddce9 (diff)
downloadiftop-9addd978c444aabfc2af6fa888436ac00770a4c8.zip
Option to display packet counts - Frédéric Perrin <fperrin@brocade.com>
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).
Diffstat (limited to 'ui_common.h')
-rw-r--r--ui_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui_common.h b/ui_common.h
index e4fcc2e..63ae5bb 100644
--- a/ui_common.h
+++ b/ui_common.h
@@ -43,6 +43,6 @@ hash_type* service_hash;
void analyse_data(void);
void screen_list_init(void);
void sprint_host(char * line, int af, struct in6_addr* addr, unsigned int port, unsigned int protocol, int L, int unspecified_as_star);
-void readable_size(float, char*, int, int, int);
+void readable_size(float, char*, int, int, option_bw_unit_t);
#endif /* __UI_COMMON_H_ */