Skip to content

Commit

Permalink
fixed bytesize_repr (#642)
Browse files Browse the repository at this point in the history
KB are a useful unit, intermediate between B and MB
  • Loading branch information
cjtitus authored Jan 29, 2024
1 parent fca4330 commit 1ff0885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tiled/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ def node_repr(tree, sample):

def bytesize_repr(num):
# adapted from dask.utils
for x in ["B", "MB", "GB", "TB"]:
for x in ["B", "KB", "MB", "GB", "TB"]:
if num < 1024.0:
if x == "B":
s = f"{num:.0f} {x}"
Expand Down

0 comments on commit 1ff0885

Please sign in to comment.