mirror of
https://github.com/HACKERALERT/Picocrypt.git
synced 2024-12-28 10:24:19 +00:00
(v1.10) Fixed ZeroDivisonError
This commit is contained in:
parent
26dc998be8
commit
5993286669
1 changed files with 2 additions and 2 deletions
|
@ -640,8 +640,8 @@ def start():
|
|||
|
||||
# Calculate speed, ETA, etc.
|
||||
first = False
|
||||
elapsed = (datetime.now()-previousTime).total_seconds()
|
||||
sinceStart = (datetime.now()-startTime).total_seconds()
|
||||
elapsed = (datetime.now()-previousTime).total_seconds() or 0.0001
|
||||
sinceStart = (datetime.now()-startTime).total_seconds() or 0.0001
|
||||
previousTime = datetime.now()
|
||||
# Prevent divison by zero
|
||||
if not elapsed:
|
||||
|
|
Loading…
Reference in a new issue