summaryrefslogtreecommitdiffstats
path: root/collectors/python.d.plugin/w1sensor/w1sensor.chart.py
diff options
context:
space:
mode:
Diffstat (limited to 'collectors/python.d.plugin/w1sensor/w1sensor.chart.py')
-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 c4f847bf0..66797ced3 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',