New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify speed/size numbers in the UI #50
Comments
@feross that doesn't quite work for now:
|
What about 1.01 MB/s and 1.92 MB/s |
The limit should probably be on the number of Significant figures. |
@rom1504 Yeah, you make a good point. Reducing the max decimals to one digit could improve your example so: 1.01 MB/s -> 1.0 MB/s And you're right that sig figs is closer to what we want. |
Closed with #93? |
@Flet Yes. |
Just sent a PR to clean up that module a lot: Flet/prettier-bytes#1 |
We want to be the simplest torrent client! 😄
No one cares if they're getting 850.62 KB/s or 850.91 KB/s as their download speed.
Let's round with
Math.floor()
inpretty-bytes
, like we already do for the progress percentage.The text was updated successfully, but these errors were encountered: