Keep known nodes for 28 instead of 2 days
This commit is contained in:
parent
c58c1969e5
commit
8df8d15cba
|
@ -87,7 +87,7 @@ class singleCleaner(threading.Thread, StoppableThread):
|
||||||
shared.knownNodesLock.acquire()
|
shared.knownNodesLock.acquire()
|
||||||
for stream in shared.knownNodes:
|
for stream in shared.knownNodes:
|
||||||
for node in shared.knownNodes[stream].keys():
|
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
|
shared.needToWriteKownNodesToDisk = True
|
||||||
del shared.knownNodes[stream][node]
|
del shared.knownNodes[stream][node]
|
||||||
shared.knownNodesLock.release()
|
shared.knownNodesLock.release()
|
||||||
|
|
Reference in New Issue
Block a user