mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-05-02 06:36:14 -04:00
Periodically try to connect RNodes that were unavailable at startup. Closes #87.
This commit is contained in:
parent
b3d85b583f
commit
18f450c58b
2 changed files with 23 additions and 8 deletions
|
@ -699,13 +699,22 @@ class Transport:
|
|||
timer = threading.Timer(wait_time, interface.process_announce_queue)
|
||||
timer.start()
|
||||
|
||||
wait_time_str = str(round(wait_time*1000,3))+"ms"
|
||||
if wait_time < 1:
|
||||
wait_time_str = str(round(wait_time*1000,2))+"ms"
|
||||
else:
|
||||
wait_time_str = str(round(wait_time*1,2))+"s"
|
||||
|
||||
ql_str = str(len(interface.announce_queue))
|
||||
RNS.log("Added announce to queue (height "+ql_str+") on "+str(interface)+" for processing in "+wait_time_str, RNS.LOG_EXTREME)
|
||||
|
||||
else:
|
||||
wait_time = max(interface.announce_allowed_at - time.time(), 0)
|
||||
wait_time_str = str(round(wait_time*1000,3))+"ms"
|
||||
|
||||
if wait_time < 1:
|
||||
wait_time_str = str(round(wait_time*1000,2))+"ms"
|
||||
else:
|
||||
wait_time_str = str(round(wait_time*1,2))+"s"
|
||||
|
||||
ql_str = str(len(interface.announce_queue))
|
||||
RNS.log("Added announce to queue (height "+ql_str+") on "+str(interface)+" for processing in "+wait_time_str, RNS.LOG_EXTREME)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue