-
Notifications
You must be signed in to change notification settings - Fork 49
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
many: use common.{Ki,Me,Gi}Bi
instead of manually doing them
#290
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much better, thanks! :)
YES :) I don't know anyone who likes to use the long form... |
Yes please! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot!
Needs a rebase and merge conflict fixing |
This commit uses `common.{Ki,Mi,Gi}B` in places that used to write `10 * 1024 * 1024` etc. It's not really important but feels quicker to scan when having the constants.
20756ca
to
481859a
Compare
Thank you! This is rebased and updated to add/use the shorthand form - fwiw, I like the shorthand a lot better as well :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This commit uses
common.{Ki,Me,Gi}Bi
in places that used to write10 * 1024 * 1024
etc. It's not really important but feels quicker to scan when having the constants.Also I wonder if we should also have common.{KiB,MiB,GiB,TiB} as a shorthand?
Also just close the PR if you feel this is not worth it :)