From 19353dfb27f7b7ef56953b48df82432abf8224a6 Mon Sep 17 00:00:00 2001 From: OSINT-TECHNOLOGIES <77023667+OSINT-TECHNOLOGIES@users.noreply.github.com> Date: Mon, 9 Sep 2024 23:51:47 +0300 Subject: [PATCH] Improved scan estimated time process --- dpulse.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dpulse.py b/dpulse.py index dc66b22..ae31f13 100644 --- a/dpulse.py +++ b/dpulse.py @@ -32,7 +32,10 @@ def time_processing(end): endtime_string = f'approximately {endtime} seconds' else: time_minutes = round(end / 60) - endtime_string = f'approximately {time_minutes} minutes' + if time_minutes == 1: + endtime_string = f'approximately {time_minutes} minute' + else: + endtime_string = f'approximately {time_minutes} minutes' return endtime_string class ProgressBar(threading.Thread):