Skip to content

Commit

Permalink
Added round function to scan elapsed time
Browse files Browse the repository at this point in the history
  • Loading branch information
OSINT-TECHNOLOGIES authored Sep 9, 2024
1 parent 011f2e1 commit abf32d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dpulse.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
def time_processing(end):
if end < 60:
endtime = round(end)
endtime_string = f'{endtime} seconds'
endtime_string = f'approximately {endtime} seconds'
else:
time_minutes = round(end) / 60
endtime_string = f'{time_minutes} minutes'
time_minutes = round(end / 60)
endtime_string = f'approximately {time_minutes} minutes'
return endtime_string

class ProgressBar(threading.Thread):
Expand Down

0 comments on commit abf32d9

Please sign in to comment.