Ensure link hops is available on both initiator and destination

This commit is contained in:
Mark Qvist
2026-07-06 19:22:41 +02:00
parent dd3ddb9d8a
commit b70688883a
+1
View File
@@ -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