(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
1 changed files with 2 additions and 2 deletions

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: