Skip to content

Commit 1ff0885

Browse files
authored
fixed bytesize_repr (#642)
KB are a useful unit, intermediate between B and MB
1 parent fca4330 commit 1ff0885

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tiled/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ def node_repr(tree, sample):
633633

634634
def bytesize_repr(num):
635635
# adapted from dask.utils
636-
for x in ["B", "MB", "GB", "TB"]:
636+
for x in ["B", "KB", "MB", "GB", "TB"]:
637637
if num < 1024.0:
638638
if x == "B":
639639
s = f"{num:.0f} {x}"

0 commit comments

Comments
 (0)