summaryrefslogtreecommitdiffstats
path: root/python.d
diff options
context:
space:
mode:
authorlgz <lgz@loled2>2016-12-25 04:06:59 +0900
committerlgz <lgz@loled2>2016-12-25 04:06:59 +0900
commita55ebd6d42d6c39484765e8a83e47d3f4d7f4814 (patch)
tree3064e8cbd6ca1003afe82f7ac14a37fdb7d779a2 /python.d
parente0845b0a04d8b87957a85f777fa622b303b869ab (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.py2
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: