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
filesize: add support for the ronna and quetta prefixes #142
base: main
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## main #142 +/- ##
==========================================
- Coverage 99.19% 99.19% -0.01%
==========================================
Files 9 9
Lines 746 744 -2
==========================================
- Hits 740 738 -2
Misses 6 6
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Hi! I have no idea how to add a "PR label". |
I'll add the PR label, thanks! (And it's an addition not skip.) Please could you add some test cases so Y, YiB, and YB are still covered somehow? |
for more information, see https://pre-commit.ci
Done. |
for i, s in enumerate(suffix): | ||
unit = base ** (i + 2) | ||
if abs_bytes < base: | ||
return ("%dB" if gnu else "%d Bytes") % bytes_ |
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.
Let's keep the previous two if
statements.
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.
It seems weird to do the same abs_bytes < base
compare twice...
No description provided.