Formatting

This commit is contained in:
shortcutme 2019-01-20 16:28:47 +01:00
parent 9c82de7df2
commit 626b6f5ccd
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -74,7 +74,7 @@ class SiteAnnouncer(object):
@util.Noparallel(blocking=False)
def announce(self, force=False, mode="start", pex=True):
if time.time() < self.time_last_announce + 30 and not force:
if time.time() - self.time_last_announce < 30 and not force:
return # No reannouncing within 30 secs
if force:
self.site.log.debug("Force reannounce in mode %s" % mode)