This commit is contained in:
parent
f3e8750ff1
commit
489883b464
@ -80,7 +80,7 @@ class ConsumerLocator:
|
|||||||
if not self.communicator.checkconsumer(consumer["Host"]):
|
if not self.communicator.checkconsumer(consumer["Host"]):
|
||||||
consumer["State"] = False
|
consumer["State"] = False
|
||||||
if datetime.datetime.now() - datetime.datetime.fromtimestamp(consumer["LastOk"]) > datetime.timedelta(
|
if datetime.datetime.now() - datetime.datetime.fromtimestamp(consumer["LastOk"]) > datetime.timedelta(
|
||||||
hours=1):
|
seconds=15):
|
||||||
removelist.append(consumer)
|
removelist.append(consumer)
|
||||||
else:
|
else:
|
||||||
consumer["LastOk"] = datetime.datetime.now().timestamp()
|
consumer["LastOk"] = datetime.datetime.now().timestamp()
|
||||||
|
Reference in New Issue
Block a user