psensor->sess_lowest = UNKNOWN_DBL_VALUE;
psensor->sess_highest = UNKNOWN_DBL_VALUE;
+ if (type & SENSOR_TYPE_PERCENT) {
+ psensor->min = 0;
+ psensor->max = 100;
+ } else {
+ psensor->min = UNKNOWN_DBL_VALUE;
+ psensor->max = UNKNOWN_DBL_VALUE;
+ }
+
psensor->type = type;
psensor->values_max_length = values_max_length;