diff options
author | lgz <lgz@loled2> | 2016-12-25 04:06:59 +0900 |
---|---|---|
committer | lgz <lgz@loled2> | 2016-12-25 04:06:59 +0900 |
commit | a55ebd6d42d6c39484765e8a83e47d3f4d7f4814 (patch) | |
tree | 3064e8cbd6ca1003afe82f7ac14a37fdb7d779a2 /python.d | |
parent | e0845b0a04d8b87957a85f777fa622b303b869ab (diff) |
add new option to conf file; returned back if in chart.py
Diffstat (limited to 'python.d')
-rw-r--r-- | python.d/hddtemp.chart.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python.d/hddtemp.chart.py b/python.d/hddtemp.chart.py index 237666b3b5..8a98995be9 100644 --- a/python.d/hddtemp.chart.py +++ b/python.d/hddtemp.chart.py @@ -82,7 +82,7 @@ class Service(SocketService): val = 0 data[raw[i*5+1].replace("/dev/", "")] = val - if not data: + if len(data) == 0: self.error("received data doesn't have needed records") return None else: |