Less frequent reannounce to zero trackers
This commit is contained in:
parent
069c59d3d7
commit
c9c6a4b867
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ class SiteAnnouncerPlugin(object):
|
||||||
full_announce = False
|
full_announce = False
|
||||||
else: # Multi: Announce all currently serving site
|
else: # Multi: Announce all currently serving site
|
||||||
full_announce = True
|
full_announce = True
|
||||||
if time.time() - time_full_announced.get(tracker_address, 0) < 60 * 5: # No reannounce all sites within 5 minute
|
if time.time() - time_full_announced.get(tracker_address, 0) < 60 * 15: # No reannounce all sites within 5 minute
|
||||||
return None
|
return None
|
||||||
time_full_announced[tracker_address] = time.time()
|
time_full_announced[tracker_address] = time.time()
|
||||||
from Site import SiteManager
|
from Site import SiteManager
|
||||||
|
|
Loading…
Reference in a new issue