fixed type 'thresold' instead of 'threshold'
[psensor.git] / src / lib / psensor.c
index 5726b2d..1ab82bd 100644 (file)
@@ -50,8 +50,8 @@ struct psensor *psensor_create(char *id, char *name,
        psensor->measures = measures_dbl_create(values_max_length);
 
        psensor->alarm_enabled = 0;
-       psensor->alarm_high_thresold = 0;
-       psensor->alarm_low_thresold = 0;
+       psensor->alarm_high_threshold = 0;
+       psensor->alarm_low_threshold = 0;
 
        psensor->cb_alarm_raised = NULL;
        psensor->cb_alarm_raised_data = NULL;
@@ -274,7 +274,7 @@ psensor_set_current_measure(struct psensor *s,
                s->max = v;
 
        if (s->alarm_enabled) {
-               if (v > s->alarm_high_thresold || v < s->alarm_low_thresold) {
+               if (v > s->alarm_high_threshold || v < s->alarm_low_threshold) {
                        if (!s->alarm_raised && s->cb_alarm_raised)
                                s->cb_alarm_raised(s, s->cb_alarm_raised_data);