summaryrefslogtreecommitdiffstats
path: root/collectors
diff options
context:
space:
mode:
authorMartin Due <martindue@live.com>2023-02-06 11:27:27 +0100
committerGitHub <noreply@github.com>2023-02-06 10:27:27 +0000
commitb634a0730fadeed61c71b2fd62269d5a46d84168 (patch)
tree5e960bc98502231d0121fcf583d855b292b26213 /collectors
parentb7ac4a6d8e0df22b115d41cd6c876e029198cd6c (diff)
Updated w1sensor.chart.py (#14435)
Changed regex to allow for negative temperatures. Previously negative temperatures did not show up in the chart.
Diffstat (limited to 'collectors')
-rw-r--r--collectors/python.d.plugin/w1sensor/w1sensor.chart.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/collectors/python.d.plugin/w1sensor/w1sensor.chart.py b/collectors/python.d.plugin/w1sensor/w1sensor.chart.py
index c4f847bf0d..66797ced3a 100644
--- a/collectors/python.d.plugin/w1sensor/w1sensor.chart.py
+++ b/collectors/python.d.plugin/w1sensor/w1sensor.chart.py
@@ -15,7 +15,7 @@ update_every = 5
W1_DIR = '/sys/bus/w1/devices/'
# Lines matching the following regular expression contain a temperature value
-RE_TEMP = re.compile(r' t=(\d+)')
+RE_TEMP = re.compile(r' t=(-?\d+)')
ORDER = [
'temp',