Skip to content

Fix human readable output edge cases#10

Open
james-antill wants to merge 3 commits into
a8m:masterfrom
james-antill:master
Open

Fix human readable output edge cases#10
james-antill wants to merge 3 commits into
a8m:masterfrom
james-antill:master

Conversation

@james-antill

Copy link
Copy Markdown
Contributor

No description provided.

@a8m

a8m commented May 12, 2020

Copy link
Copy Markdown
Owner

Thanks for the PR @james-antill.
Can you please add a small test case for this?

Thanks

@james-antill

Copy link
Copy Markdown
Contributor Author

I added testing, and realized you used KiB format not KB ... so I changed it over to base 10 and created formatBytesKiB(), as you can see that produces output like "1024K" ... if you prefer that, probably just ignore this PR.

@albertony

Copy link
Copy Markdown

Would you consider, perhaps as an option, to include an additional letter i to get proper unambiguous binary/IEC notation (Ki, Mi, Gi etc)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants