Update hashfiled more often

This commit is contained in:
shortcutme 2017-10-03 15:26:53 +02:00
parent c0e69e91a1
commit c494b01435
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -272,8 +272,8 @@ class Peer(object):
return self.request("listModified", {"since": since, "site": self.site.address}) return self.request("listModified", {"since": since, "site": self.site.address})
def updateHashfield(self, force=False): def updateHashfield(self, force=False):
# Don't update hashfield again in 15 min # Don't update hashfield again in 5 min
if self.time_hashfield and time.time() - self.time_hashfield > 60 * 15 and not force: if self.time_hashfield and time.time() - self.time_hashfield < 5 * 60 and not force:
return False return False
self.time_hashfield = time.time() self.time_hashfield = time.time()