projects
/
psensor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use max/min of the sensor for the threshold if not overriden by the configuration
[psensor.git]
/
src
/
lib
/
psensor.h
diff --git
a/src/lib/psensor.h
b/src/lib/psensor.h
index
56b349f
..
1637f89
100644
(file)
--- a/
src/lib/psensor.h
+++ b/
src/lib/psensor.h
@@
-80,14
+80,18
@@
struct psensor {
/* see psensor_type */
unsigned int type;
/* see psensor_type */
unsigned int type;
- /* The maximum detected value of the sensor */
double max;
double max;
- /* The minimum detected value of the sensor */
double min;
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;
/* Whether an alarm is raised for this sensor */
bool alarm_raised;