Fix typo in DIFFERENT_DURATION_THRESHOLD constant name

This commit is contained in:
Et0h 2014-12-03 01:54:25 +00:00
parent 18784bfccc
commit 3e560c8063
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ SLOWDOWN_RATE = 0.95
DEFAULT_SLOWDOWN_KICKIN_THRESHOLD = 1.5
MINIMUM_SLOWDOWN_THRESHOLD = 1.3
SLOWDOWN_RESET_THRESHOLD = 0.1
DIFFFERENT_DURATION_THRESHOLD = 2.5
DIFFERENT_DURATION_THRESHOLD = 2.5
PROTOCOL_TIMEOUT = 12.5
RECONNECT_RETRIES = 10
SERVER_STATE_INTERVAL = 1

View File

@ -205,7 +205,7 @@ def sameFilesize (filesize1, filesize2):
def sameFileduration (duration1, duration2):
if not constants.SHOW_DURATION_NOTIFICATION:
return True
elif abs(round(duration1) - round(duration2)) < constants.DIFFFERENT_DURATION_THRESHOLD:
elif abs(round(duration1) - round(duration2)) < constants.DIFFERENT_DURATION_THRESHOLD:
return True
else:
return False