diff --git a/lib/statistics.py b/lib/statistics.py index 16ddd8f133d3d962deeafa664eec1c3bfc8deea5..db2e14d57b1234c3beeb3b7c38c3790c3d3539c8 100644 --- a/lib/statistics.py +++ b/lib/statistics.py @@ -141,7 +141,7 @@ class Statistics(Respondd): lines = lib.helper.call(['batctl', '-m', self._config['batman'], 'gwl', '-n']) for line in lines: - lineMatch = re.match(r'^(\*|=>) +([0-9a-f:]+) \([\d ]+\) ([0-9a-f:]+)', line) + lineMatch = re.match(r'(\*|=>)\s+([0-9a-f:]+)\s\([\d \.]+\)\s+([0-9a-f:]+)', line) if lineMatch: ret = {} ret['gateway'] = lineMatch.group(2)