/* The minimum detected value of the sensor */
double min;
- /*
- Whether alarm alerts is enabled for this sensor
- */
- int alarm_enabled;
-
- /*
- An alarm is raised if the current sensor value is bigger. 0
- means no limit
- */
- double alarm_limit;
-
- /* Whether the current value is bigger than 'alarm_limit'. */
+ /* Whether alarm alert is enabled for this sensor */
+ unsigned int alarm_enabled;
+
+ int alarm_high_thresold;
+
+ /* Whether the current value is bigger than 'alarm_high_thresold'. */
int alarm_raised;
void (*cb_alarm_raised) (struct psensor *, void *);
parameter 'type' is SENSOR_TYPE_LMSENSOR_TEMP, SENSOR_TYPE_NVIDIA,
or SENSOR_TYPE_LMSENSOR_FAN
*/
-char *psensor_value_to_string(unsigned int type,
- double value,
- int use_celcius);
+char *psensor_value_to_str(unsigned int type,
+ double value,
+ int use_celcius);
+
+char *psensor_measure_to_str(const struct measure *m,
+ unsigned int type,
+ unsigned int use_celcius);
struct psensor **get_all_sensors(int use_libatasmart, int values_max_length);