Skip to content

Commit

Permalink
Update stats.py
Browse files Browse the repository at this point in the history
Change descriptions to *bibytes to avoid confusion
  • Loading branch information
singingtelegram committed Nov 2, 2021
1 parent fe6ea65 commit af3d9bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocflib/lab/stats.py
Expand Up @@ -251,7 +251,7 @@ def humanize_bytes(n):
Adapted from http://stackoverflow.com/a/1094933/1979001
"""

for unit in ['', 'KB', 'MB', 'GB', 'TB', 'PB']:
for unit in ['', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB']:
if n < 1024.0:
return '{:3.2f} {}'.format(n, unit)
n /= 1024.0
Expand Down

0 comments on commit af3d9bd

Please sign in to comment.