Skip to content

Commit

Permalink
print size_bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardKoschicek committed Nov 27, 2023
1 parent 832daab commit 82d34da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openatlas/display/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ def format_date(value: Union[datetime, numpy.datetime64]) -> str:


def convert_size(size_bytes: int) -> str:
print(size_bytes)
if size_bytes == 0:
return "0 B" # pragma: no cover
size_name = ("B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB")
Expand Down

0 comments on commit 82d34da

Please sign in to comment.