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

1907 MiB is displayed as 1 GB #8

Closed
tshepang opened this Issue Sep 14, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@tshepang
Contributor

tshepang commented Sep 14, 2017

Given this code:

println!("{}", ByteSize::mib(1907));
println!("{}", ByteSize::mib(1908));

I get this output:

1 GB
2 GB

@tshepang tshepang changed the title from 1907 MiB is displayed as 2GB to 1907 MiB is displayed as 2 GB Sep 14, 2017

@hyunsik hyunsik added the bug label Sep 17, 2017

@hyunsik

This comment has been minimized.

Show comment
Hide comment
@hyunsik

hyunsik Sep 17, 2017

Owner

Thank you for the report. I'll take a look at this issue.

Owner

hyunsik commented Sep 17, 2017

Thank you for the report. I'll take a look at this issue.

@tshepang tshepang changed the title from 1907 MiB is displayed as 2 GB to 1907 MiB is displayed as 1 GB Sep 18, 2017

@hyunsik hyunsik closed this in 0203107 Mar 24, 2018

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