use max/min of the sensor for the threshold if not overriden by the configuration
[psensor.git] / src / lib / psensor.h
index 56b349f..1637f89 100644 (file)
@@ -80,14 +80,18 @@ struct psensor {
        /* see psensor_type */
        unsigned int type;
 
-       /* The maximum detected value of the sensor */
        double max;
 
-       /* The minimum detected value of the sensor */
        double min;
 
-       int alarm_high_threshold;
-       int alarm_low_threshold;
+       /* The highest value detected during this session. */
+       double sess_highest;
+
+       /* The lowest value detected during this session. */
+       double sess_lowest;
+
+       double alarm_high_threshold;
+       double alarm_low_threshold;
 
        /* Whether an alarm is raised for this sensor */
        bool alarm_raised;