bmon icon indicating copy to clipboard operation
bmon copied to clipboard

bandwith unit should be optionally bps

Open alfrenovsky opened this issue 11 years ago • 6 comments

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.

alfrenovsky avatar May 02 '14 11:05 alfrenovsky

Added new -b/--use-bit option to git tree. Let me know how that works.

tgraf avatar May 08 '14 13:05 tgraf

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!

notgood avatar Apr 27 '15 11:04 notgood

I agree with this and would like to accept a pull request for this feature.

tgraf avatar Apr 29 '15 15:04 tgraf

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.

ogarod avatar May 17 '23 15:05 ogarod