From 0c74bf32248e0fba0b20abe8a0d5de39da62bf04 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Tue, 5 Jun 2012 16:32:47 +0200 Subject: [PATCH] use worst link quality --- nodedb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodedb.py b/nodedb.py index f90ef02..a0e20e8 100644 --- a/nodedb.py +++ b/nodedb.py @@ -34,7 +34,7 @@ class NodeDB: for link in self._links: if l == link[0]: if link[1] != str(q): - link[1] += " / " + str(q) + link[1] = max(float(link[1]), float(q)) return self._links.append([l,str(q)])