Fix typo in DIFFERENT_DURATION_THRESHOLD constant name
This commit is contained in:
parent
18784bfccc
commit
3e560c8063
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user