From ed938a2d6416794487206660d3499ec5165248d4 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Wed, 6 Jun 2012 14:19:45 +0200 Subject: [PATCH] don't count merged TT links --- nodedb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nodedb.py b/nodedb.py index e4f84e8..4ca7fef 100644 --- a/nodedb.py +++ b/nodedb.py @@ -119,7 +119,8 @@ class NodeDB: a = self._nodes.index(router) 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: x = json.loads(line)