mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-11-20 23:16:26 -05:00
Ensure link hops is available on both initiator and destination
This commit is contained in:
parent
dd3ddb9d8a
commit
b70688883a
1 changed files with 1 additions and 0 deletions
|
|
@ -522,6 +522,7 @@ class Link:
|
|||
self.rtt = max(measured_rtt, rtt)
|
||||
self.status = Link.ACTIVE
|
||||
self.activated_at = time.time()
|
||||
self.expected_hops = packet.hops
|
||||
|
||||
if self.rtt != None and self.establishment_cost != None and self.rtt > 0 and self.establishment_cost > 0:
|
||||
self.establishment_rate = self.establishment_cost/self.rtt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue