This commit is contained in:
SpudGunMan
2025-10-21 14:24:24 -07:00
parent d4fd484706
commit cd03cc56b4
2 changed files with 6 additions and 0 deletions

View File

@@ -1598,6 +1598,9 @@ def onReceive(packet, interface):
else:
hop_count = hop_away
if hop == "" and hop_count > 0:
hop = f"{hop_count} Hop" if hop_count == 1 else f"{hop_count} Hops"
if hop_away == 0 and hop_limit == 0 and hop_start == 0:
hop = "Last Hop"

View File

@@ -345,6 +345,9 @@ def onReceive(packet, interface):
else:
hop_count = hop_away
if hop == "" and hop_count > 0:
hop = f"{hop_count} Hop" if hop_count == 1 else f"{hop_count} Hops"
if hop_away == 0 and hop_limit == 0 and hop_start == 0:
hop = "Last Hop"