[Iftop-users] Does iftop use decimal (k=1000) or binary (k=1024) prefixes for bit/byte display?

Jaime enopatch at gmail.com
Mon Jun 29 17:15:54 BST 2020


Hi.

Could someone please tell me whether iftop uses decimal (k=1000) or
binary (k=1024) prefixes for bandwidth usage display in bits and bytes
(not packets).

I've had a quick dig in the source and I think that (according to the
definition of, and calls to, readable_size in ui_common.c) it's 1024,
but I'd be very grateful for a confirmation either way.

(FWIW, I'm using iftop "2018-10-03-77901c8c-1" on Openwrt trunk)

Many thanks, Jaime



More information about the iftop-users mailing list