From 2fd07da707fb10d9a30c1e73cb97d016caf0ef3c Mon Sep 17 00:00:00 2001 From: gdamms Date: Sat, 26 Mar 2022 17:18:57 +0100 Subject: [PATCH] fix: ETA time --- src/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index da89638..275ccf4 100644 --- a/src/main.py +++ b/src/main.py @@ -1,3 +1,4 @@ +import datetime import logging import sqlite3 import time @@ -72,7 +73,7 @@ if __name__ == "__main__": estimation = int((nb_loadouts - i) * sum(eta_list) / NB_ETA) logging.debug( - f"loadout {str(i).zfill(digits_loadout)}/{nb_loadouts} ({elapsed:.02f}s, ETA: {estimation}s): {loadout}" + f"loadout {str(i).zfill(digits_loadout)}/{nb_loadouts} ({elapsed:.02f}s, ETA: {datetime.timedelta(seconds=estimation)}): {loadout}" ) # fermeture de la db sqlite3