mirror of
https://github.com/cwinfo/yggdrasil-map
synced 2024-11-22 12:50:27 +00:00
fix issue with unknown nodes
This commit is contained in:
parent
d087a3de67
commit
1805f55cf9
@ -39,8 +39,9 @@ def generate_graph(time_limit=60*60*3):
|
|||||||
|
|
||||||
nodes = dict()
|
nodes = dict()
|
||||||
def addAncestors(info):
|
def addAncestors(info):
|
||||||
parent = NodeInfo("?", info.getParent())
|
coords = info.getParent()
|
||||||
parent.label = "{} {}".format(parent.ip, parent.coords)
|
parent = NodeInfo("{} {}".format("?", coords), coords)
|
||||||
|
parent.label = "?"
|
||||||
nodes[parent.coords] = parent
|
nodes[parent.coords] = parent
|
||||||
if parent.coords != parent.getParent(): addAncestors(parent)
|
if parent.coords != parent.getParent(): addAncestors(parent)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user