From a519d4ddbd6da648cc5c3376f3eb6d00dd6ffac5 Mon Sep 17 00:00:00 2001 From: HinGwenWoong Date: Wed, 19 Jan 2022 11:00:43 +0800 Subject: [PATCH] [ time left ] remove microseconds --- PPOCRLabel/libs/autoDialog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PPOCRLabel/libs/autoDialog.py b/PPOCRLabel/libs/autoDialog.py index c26bc759..189a590d 100644 --- a/PPOCRLabel/libs/autoDialog.py +++ b/PPOCRLabel/libs/autoDialog.py @@ -118,7 +118,7 @@ class AutoDialog(QDialog): # calculate time left of auto labeling avg_time = (time.time() - self.time_start) / i # Use average time to prevent time fluctuations - time_left = str(datetime.timedelta(seconds=avg_time * (self.lender - i))) + time_left = str(datetime.timedelta(seconds=avg_time * (self.lender - i))).split(".")[0] # Remove microseconds self.setWindowTitle("PPOCRLabel -- " + f"Time Left: {time_left}") # show def handleListWidgetSingal(self, i): -- GitLab