Skip to content

Commit

Permalink
enhance archive size
Browse files Browse the repository at this point in the history
  • Loading branch information
cxnt committed Oct 6, 2023
1 parent aeb5d79 commit 2e20800
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ def upload_coco_project(full_archive_name, result_archive, app_logger):
sly.fs.archive_directory(g.storage_dir, result_archive)

archive_size = sly.fs.get_file_size(result_archive) / (1024 * 1024)
archive_size = f"{archive_size:.2f} MB"
sly.logger.info(f"Total archive size: {archive_size}")

app_logger.info("Result directory is archived")
Expand Down

0 comments on commit 2e20800

Please sign in to comment.