Giter Site home page Giter Site logo

bandwith unit should be optionally bps about bmon HOT 4 OPEN

tgraf avatar tgraf commented on May 21, 2024 1
bandwith unit should be optionally bps

from bmon.

Comments (4)

tgraf avatar tgraf commented on May 21, 2024

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

from bmon.

notgood avatar notgood commented on May 21, 2024

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!

from bmon.

tgraf avatar tgraf commented on May 21, 2024

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

from bmon.

ogarod avatar ogarod commented on May 21, 2024

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.

from bmon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.