Keep known nodes for 28 instead of 2 days

This commit is contained in:
Peter Šurda 2016-08-21 07:28:33 +02:00
parent c58c1969e5
commit 8df8d15cba
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -87,7 +87,7 @@ class singleCleaner(threading.Thread, StoppableThread):
shared.knownNodesLock.acquire()
for stream in shared.knownNodes:
for node in shared.knownNodes[stream].keys():
if now - shared.knownNodes[stream][node] > 259200: # 3 days
if now - shared.knownNodes[stream][node] > 2419200: # 28 days
shared.needToWriteKownNodesToDisk = True
del shared.knownNodes[stream][node]
shared.knownNodesLock.release()