-
Notifications
You must be signed in to change notification settings - Fork 39
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
Inconsistent decimal places #9
Comments
I agree, what do you think about opening a pull request? This should be fairly simple to fix 🙌 |
If I may -
gives the impression that I guessed correctly. Thanks. |
Oh, I think I once suggested this moby/moby#9977 |
From the fmt unit tests it looks like I got the wrong impression. I guess we need to replace the If you don't mind, I will figure it out and post a PR in the next days. Also (taken from https://golang.org/pkg/fmt/)
|
Thanks everybody for looking into this. I do currently not have the time to write a PR myself. |
go-units removes trailing zeros in its output. This makes the output in Docker's progress indicators not line up.
Current:
Better:
One decimal place should be enough when dealing with sizes:
The text was updated successfully, but these errors were encountered: