Skip to content
This repository has been archived by the owner on Aug 29, 2020. It is now read-only.

Adding Network speed in bits per second - issue #57 #61

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

fabiopetrillo
Copy link

No description provided.

),
if self.show_bits {
format!(
"Rx/s: {} bits/s",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good except we need the 'bits' label to change to 'Kb', 'Mb', etc as the amount grows. Maybe there's a rust library that can do this for us or we can write our own function to do this.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are currently using https://github.com/neosmart/prettysize-rs to do this for the bytes. I don't know if it works for bits, if there's another library that does, or if we should make a pull request.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants