5
0
mirror of https://github.com/cwinfo/yggdrasil-map synced 2024-11-24 14:31:35 +00:00

better labels for unknown nodes

This commit is contained in:
Arceliar 2018-12-17 21:44:27 -06:00
parent afbf59cf08
commit a6df0a3b7c

View File

@ -42,7 +42,7 @@ def generate_graph(time_limit=60*60*3):
def addAncestors(info): def addAncestors(info):
coords = info.getParent() coords = info.getParent()
parent = NodeInfo("{} {}".format("?", coords), coords) parent = NodeInfo("{} {}".format("?", coords), coords)
parent.label = "?" parent.label = parent.ip
nodes[parent.coords] = parent nodes[parent.coords] = parent
if parent.coords != parent.getParent(): addAncestors(parent) if parent.coords != parent.getParent(): addAncestors(parent)