cli icon indicating copy to clipboard operation
cli copied to clipboard

formatters(image): prevent image size from displaying scientific notation

Open servusdei2018 opened this issue 3 months ago • 1 comments

fixes #3091 dupe #4459

- What I did

HumanSizeWithPrecision (which was configured to 3 significant digits) was replaced with HumanSize (which defaults to 4) in order to prevent scientific notation from appearing under certain edge cases. This is a known bug (docker/go-units#44) in the affected dependency.

In practical terms, adjusting the precision from 3 to 4 should cause no issues with users' current expectations and usage of the cli.

- How to verify it

Regression tests implemented to prevent future breakage.

- Description for the changelog

formatters(image): prevent image size from displaying scientific notation under edge cases

servusdei2018 avatar May 05 '24 20:05 servusdei2018