diff --git a/providers/neighbours/batadv.py b/providers/neighbours/batadv.py index 1d97876..302b961 100644 --- a/providers/neighbours/batadv.py +++ b/providers/neighbours/batadv.py @@ -20,6 +20,6 @@ def call(self, batadv_dev): line = line.replace(s, '') fields = line.split() if fields[4] == ifname and fields[0] == fields[3]: - ifneighbours[fields[0]] = {'lastseen': float(fields[1].strip('s')), 'tq': int(fields[2])} + ifneighbours[fields[0]] = {'lastseen': float(fields[1].strip('s')), 'tq': int(float(fields[2]))} neighbours[mac] = {'neighbours': ifneighbours} return neighbours