Skip to content
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

Show 3 digits instead of 1 in file size strings. #296

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

bdice
Copy link
Contributor

@bdice bdice commented Jan 28, 2025

I am working with a file size that is near a limit. It says:

------------ check results -----------
1. [distro-too-large-compressed] Compressed size 0.5G is larger than the allowed size (0.5G).
errors found while checking: 1

This output is not very helpful. This PR changes the string format of file sizes to show 3 digits instead of 1 digit.

@bdice bdice requested a review from jameslamb as a code owner January 28, 2025 20:53
@jameslamb jameslamb added the enhancement New feature or request label Jan 28, 2025
Copy link
Owner

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

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

I'm good with this, thanks for putting up a PR!

It'd be nice for this to be configurable so getting more information didn't require code changes... opened #297 to track that.

But I'm happy to merge this as-is, 3 is a fine default.

@jameslamb jameslamb merged commit c10e3da into jameslamb:main Jan 28, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants