@cryptotaxi247 / netdata-1 / commits / b634a0730

Updated w1sensor.chart.py (#14435)

Changed regex to allow for negative temperatures. Previously negative temperatures did not show up in the chart.

Martin Due committed Feb 6, 2023 at 11:27 UTC b634a0730fadeed61c71b2fd62269d5a46d84168
1 file changed +1 -1
collectors/python.d.plugin/w1sensor/w1sensor.chart.py
+1 -1
@@ -15,7 +15,7 @@ update_every = 5
15 W1_DIR = '/sys/bus/w1/devices/'
16
17 # Lines matching the following regular expression contain a temperature value
18 -RE_TEMP = re.compile(r' t=(\d+)')
18 +RE_TEMP = re.compile(r' t=(-?\d+)')
19
20 ORDER = [
21 'temp',