timeout reduction by up to 3 minutes

This commit is contained in:
Waldek 2020-07-16 08:01:13 +02:00 committed by GitHub
parent c5b27805cf
commit c64ef2e779
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -183,7 +183,7 @@ def cleanTE():
ts = CTABLE['MASTERS'][system]['PEERS'][peer][timeS]['TIMEOUT'] ts = CTABLE['MASTERS'][system]['PEERS'][peer][timeS]['TIMEOUT']
td = ts - timeout if ts > timeout else timeout - ts td = ts - timeout if ts > timeout else timeout - ts
td = int(round(abs((td)) / 60)) td = int(round(abs((td)) / 60))
if td > 4: if td > 3:
CTABLE['MASTERS'][system]['PEERS'][peer][timeS]['TS'] = False CTABLE['MASTERS'][system]['PEERS'][peer][timeS]['TS'] = False
CTABLE['MASTERS'][system]['PEERS'][peer][timeS]['COLOR'] = BLACK CTABLE['MASTERS'][system]['PEERS'][peer][timeS]['COLOR'] = BLACK
CTABLE['MASTERS'][system]['PEERS'][peer][timeS]['BGCOLOR'] = WHITE2 CTABLE['MASTERS'][system]['PEERS'][peer][timeS]['BGCOLOR'] = WHITE2
@ -198,7 +198,7 @@ def cleanTE():
ts = CTABLE['PEERS'][system][timeS]['TIMEOUT'] ts = CTABLE['PEERS'][system][timeS]['TIMEOUT']
td = ts - timeout if ts > timeout else timeout - ts td = ts - timeout if ts > timeout else timeout - ts
td = int(round(abs((td)) / 60)) td = int(round(abs((td)) / 60))
if td > 4: if td > 3:
CTABLE['PEERS'][system][timeS]['TS'] = False CTABLE['PEERS'][system][timeS]['TS'] = False
CTABLE['PEERS'][system][timeS]['COLOR'] = BLACK CTABLE['PEERS'][system][timeS]['COLOR'] = BLACK
CTABLE['PEERS'][system][timeS]['BGCOLOR'] = WHITE2 CTABLE['PEERS'][system][timeS]['BGCOLOR'] = WHITE2
@ -212,7 +212,7 @@ def cleanTE():
ts = CTABLE['OPENBRIDGES'][system]['STREAMS'][streamId][3] ts = CTABLE['OPENBRIDGES'][system]['STREAMS'][streamId][3]
td = ts - timeout if ts > timeout else timeout - ts td = ts - timeout if ts > timeout else timeout - ts
td = int(round(abs((td)) / 60)) td = int(round(abs((td)) / 60))
if td > 4: if td > 3:
del CTABLE['OPENBRIDGES'][system]['STREAMS'][streamId] del CTABLE['OPENBRIDGES'][system]['STREAMS'][streamId]