1
0
Fork 0
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:
Evan Su 2021-03-18 22:09:04 -04:00 committed by GitHub
parent 26dc998be8
commit 5993286669
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: