@cryptotaxi247 / netdata-1 / commits / 0259640be

python module sensors fix (#5406)

* get_data indentation fix * fix divisor of energy and power charts

Ilya Mashchenko committed Feb 18, 2019 at 16:12 UTC 0259640be1899063832429deed3536bc875e9800
1 file changed +4 -4
collectors/python.d.plugin/sensors/sensors.chart.py
+4 -4
@@ -41,7 +41,7 @@ CHARTS = {
41 'power': {
42 'options': [None, ' power', 'Watt', 'power', 'sensors.power', 'line'],
43 'lines': [
44 - [None, None, 'absolute', 1, 1000000]
44 + [None, None, 'absolute', 1, 1000]
45 ]
46 },
47 'fan': {
@@ -51,9 +51,9 @@ CHARTS = {
51 ]
52 },
53 'energy': {
54 - 'options': [None, ' energy', 'Joule', 'energy', 'sensors.energy', 'areastack'],
54 + 'options': [None, ' energy', 'Joule', 'energy', 'sensors.energy', 'line'],
55 'lines': [
56 - [None, None, 'incremental', 1, 1000000]
56 + [None, None, 'incremental', 1, 1000]
57 ]
58 },
59 'humidity': {
@@ -115,7 +115,7 @@ class Service(SimpleService):
115 limit = LIMITS[type_name]
116 if val < limit[0] or val > limit[1]:
117 continue
118 - data[prefix + '_' + str(feature.name.decode())] = int(val * 1000)
118 + data[prefix + '_' + str(feature.name.decode())] = int(val * 1000)
119 except sensors.SensorsError as error:
120 self.error(error)
121 return None