Update hashfiled more often
This commit is contained in:
parent
c0e69e91a1
commit
c494b01435
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue