From 3c35a75c9258fc2c888864625fa371f50cff5a1e Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Tue, 5 Feb 2019 21:06:40 -0700 Subject: [PATCH] Raise exception when temps >= limit --- .bin/Scripts/functions/sensors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bin/Scripts/functions/sensors.py b/.bin/Scripts/functions/sensors.py index ab74b2e4..221fcfc3 100644 --- a/.bin/Scripts/functions/sensors.py +++ b/.bin/Scripts/functions/sensors.py @@ -237,7 +237,7 @@ def update_sensor_data(sensor_data, thermal_threshold=None): # Check if thermal limit reached if thermal_threshold and _section == 'CoreTemps': - if max(_data['Current'], _data['Max']) > thermal_threshold: + if max(_data['Current'], _data['Max']) >= thermal_threshold: raise ThermalError('CoreTemps above threshold')