bandwith unit should be optionally bps
bmon measures in Bytes per second. Wich is a useless in some scenarios.
I should be at least an option to change the units to bits per second.
Added new -b/--use-bit option to git tree. Let me know how that works.
At the moment bmon uses all-or-nothing approach to units. Every field is either MiB, or MB, or Mbit.
But most of the times, when it comes to the network "speed", is customary to use bits. And in order to display "amount" transferred, base2 MiB or base10 MB are usually used. (religion thing, really)
It would be nice to allow to configure unit scale per field, or at least allow to customize it separately for "speed" and "amount" fields.
P.S. bmon is hands down the best console console bandwidth I've encountered so far, using it on numerous embedded openwrt routers :) Good job!
I agree with this and would like to accept a pull request for this feature.
Is the -b option meant to apply to output modules as well? Here's how I am using the format output module:
-o format:fmt='$(element:name)\t$(attr:rx:bytes)\t$(attr:rxrate:bytes)\t$(attr:rx:packets)\t$(attr:rxrate:packets)\n'
However it seems the units used are still bytes, even when I pass in the -b flag.