@cryptotaxi247 / netdata-1 / commits / 024f87b9e

len() optimized away

Dominik Schloesser committed Sep 4, 2017 at 14:02 UTC 024f87b9eda0606126894d4ec440b6ca9a513557
1 file changed +1 -1
python.d/chrony.chart.py
+1 -1
@@ -96,7 +96,7 @@ class Service(ExecutableService):
96 key, value = (l.strip() for l in line)
97 except ValueError:
98 continue
99 - if len(value) > 0:
99 + if value:
100 parsed[key] = value.split()[0]
101
102 for key, dim_id, multiplier in CHRONY: