From 7a926d91c6e51da7cee5b9947346a6925192aeb4 Mon Sep 17 00:00:00 2001 From: alexrf45 Date: Sat, 30 Nov 2024 23:17:45 -0500 Subject: [PATCH] GB display --- aegis-wrapper/aegis/docker_handler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aegis-wrapper/aegis/docker_handler.py b/aegis-wrapper/aegis/docker_handler.py index 0e95f7b..a4d98f4 100644 --- a/aegis-wrapper/aegis/docker_handler.py +++ b/aegis-wrapper/aegis/docker_handler.py @@ -45,10 +45,10 @@ def pull_image(self, image_name: str): progress.update( task, completed=details['current'], - current_mb=details['current'] / (1024 * 1024), - total=details['total'] / (1024 * 1024), + current_gb=details['current'] / (1024 ** 3), + total=details['total'] / (1024 ** 3), status=f"{line['status']}: { - details['current']}/{details['total']} MB", + details['current']}/{details['total']} GB", ) elapsed_time = time.time() - start_time