mirror of
https://github.com/HACKERALERT/Picocrypt.git
synced 2024-12-30 19:32:33 +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.
|
# Calculate speed, ETA, etc.
|
||||||
first = False
|
first = False
|
||||||
elapsed = (datetime.now()-previousTime).total_seconds()
|
elapsed = (datetime.now()-previousTime).total_seconds() or 0.0001
|
||||||
sinceStart = (datetime.now()-startTime).total_seconds()
|
sinceStart = (datetime.now()-startTime).total_seconds() or 0.0001
|
||||||
previousTime = datetime.now()
|
previousTime = datetime.now()
|
||||||
# Prevent divison by zero
|
# Prevent divison by zero
|
||||||
if not elapsed:
|
if not elapsed:
|
||||||
|
|
Loading…
Reference in a new issue