@cryptotaxi247 / netdata-1 / commits / 69fa2642c

hddtemp check raw data

paulfantom committed Jul 19, 2016 at 03:18 UTC 69fa2642cce0eaf38ce3a6df052c6f999578d24b
1 file changed +9
python.d/hddtemp.chart.py
+9
@@ -39,6 +39,15 @@ class Service(SocketService):
39 self.order = ORDER
40 self.definitions = CHARTS
41
42 + def _check_raw_data(self, data):
43 + if not data.endswith('|'):
44 + return False
45 +
46 + if data.count('|') % 5 == 0:
47 + return True
48 +
49 + return False
50 +
51 def _get_data(self):
52 """
53 Get data from TCP/IP socket