bandwhich icon indicating copy to clipboard operation
bandwhich copied to clipboard

Units

Open nedimzecic opened this issue 5 years ago • 7 comments

Hello,

First of all thank you for this great utility.

Is there any possibility to switch units to bps (bits per second) since bitrate is usually expressed this way?

Thanks,

nedimzecic avatar Jan 29 '20 21:01 nedimzecic

Hey - glad you like it.

Well, this was modeled after the bandwidth measurement I've seen in other places (eg. when you download in firefox, you see "1.5 MB/s"). Do you have an example where the rate is represented in bits?

imsnif avatar Jan 29 '20 21:01 imsnif

Well, this is heavily used in video streaming. It makes sense if you are comparing measured against total bitrate which is always expressed as 100 Mbps, 1 Gbps, 10 Gbps etc.

If you think this is interesting it should be simple. Multiplication by 8, it could be done with additional flag. I would like to help.

nedimzecic avatar Jan 29 '20 22:01 nedimzecic

Cool, sounds good. Let's have an optional --use-bits-unit flag that does this (unless you have a better name in mind, ofc :) ).

imsnif avatar Jan 29 '20 23:01 imsnif

Thanks so much for taking this into consideration. I suppose whole thing regarding connection speed / bitrate is there due to legacy reasons but still you can't buy connection in MB/s :)

nedimzecic avatar Jan 29 '20 23:01 nedimzecic

@imsnif on the latest release, the default unit of measurement is Bps. How can I change this to KBps for example or any other variant? Checked on help but no such flag to choose from. Thanks

yohannes avatar Mar 10 '20 08:03 yohannes

Hey @macgeekpro - if the measurement is above 1000, the units should jump to the next order of magnitude. I just checked the latest version, and for me it works fine (I'm seeing KBps, MBps and GBps where relevant). Let me know if it behaves differently for you and we'll try to debug it.

imsnif avatar Mar 10 '20 08:03 imsnif

@imsnif ah I see. That's an even better design that I never thought of. Thanks.

yohannes avatar Mar 10 '20 09:03 yohannes

Hi all, please try out #328. You can either pull and build locally, or you can download the newest CI build.

cyqsimon avatar Nov 01 '23 07:11 cyqsimon