don't count merged TT links
parent
ad618ff010
commit
ed938a2d64
|
@ -119,7 +119,8 @@ class NodeDB:
|
||||||
a = self._nodes.index(router)
|
a = self._nodes.index(router)
|
||||||
b = self._nodes.index(neighbor)
|
b = self._nodes.index(neighbor)
|
||||||
|
|
||||||
self.add_link(a, b, x['label'])
|
if a != b:
|
||||||
|
self.add_link(a, b, x['label'])
|
||||||
|
|
||||||
for line in lines:
|
for line in lines:
|
||||||
x = json.loads(line)
|
x = json.loads(line)
|
||||||
|
|
Loading…
Reference in New Issue