msgstr ""
"Project-Id-Version: psensor 0.7.0.x\n"
"Report-Msgid-Bugs-To: jeanfi@gmail.com\n"
-"POT-Creation-Date: 2012-05-04 17:38+0200\n"
+"POT-Creation-Date: 2012-05-04 17:47+0200\n"
"PO-Revision-Date: 2012-04-28 16:28+0000\n"
"Last-Translator: <jeanfi@gmail.com>\n"
"Language-Team: German\n"
msgstr ""
#: src/glade/sensor-edit.glade:366
-msgid "High thresold:"
+msgid "High threshold:"
msgstr ""
#: src/glade/sensor-edit.glade:381
-msgid "Low thresold:"
+msgid "Low threshold:"
msgstr ""
#: src/lib/amd.c:150
msgstr ""
"Project-Id-Version: psensor\n"
"Report-Msgid-Bugs-To: jeanfi@gmail.com\n"
-"POT-Creation-Date: 2012-05-04 17:38+0200\n"
+"POT-Creation-Date: 2012-05-04 17:47+0200\n"
"PO-Revision-Date: 2012-05-01 12:09+0000\n"
"Last-Translator: jeanfi <Unknown>\n"
"Language-Team: French <>\n"
msgstr "Dessiner la courbe de la sonde"
#: src/glade/sensor-edit.glade:366
-msgid "High thresold:"
+#, fuzzy
+msgid "High threshold:"
msgstr "Seuil supérieur:"
#: src/glade/sensor-edit.glade:381
-msgid "Low thresold:"
+#, fuzzy
+msgid "Low threshold:"
msgstr "Seuil inférieur:"
#: src/lib/amd.c:150
msgstr ""
"Project-Id-Version: psensor 0.7.0.x\n"
"Report-Msgid-Bugs-To: jeanfi@gmail.com\n"
-"POT-Creation-Date: 2012-05-04 17:38+0200\n"
+"POT-Creation-Date: 2012-05-04 17:47+0200\n"
"PO-Revision-Date: 2012-04-28 16:28+0000\n"
"Last-Translator: <jeanfi@gmail.com>\n"
"Language-Team: Italian\n"
msgstr ""
#: src/glade/sensor-edit.glade:366
-msgid "High thresold:"
+msgid "High threshold:"
msgstr ""
#: src/glade/sensor-edit.glade:381
-msgid "Low thresold:"
+msgid "Low threshold:"
msgstr ""
#: src/lib/amd.c:150
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: jeanfi@gmail.com\n"
-"POT-Creation-Date: 2012-05-04 17:38+0200\n"
+"POT-Creation-Date: 2012-05-04 17:47+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgstr ""
#: src/glade/sensor-edit.glade:366
-msgid "High thresold:"
+msgid "High threshold:"
msgstr ""
#: src/glade/sensor-edit.glade:381
-msgid "Low thresold:"
+msgid "Low threshold:"
msgstr ""
#: src/lib/amd.c:150
msgstr ""
"Project-Id-Version: psensor 0.7.0.x\n"
"Report-Msgid-Bugs-To: jeanfi@gmail.com\n"
-"POT-Creation-Date: 2012-05-04 17:38+0200\n"
+"POT-Creation-Date: 2012-05-04 17:47+0200\n"
"PO-Revision-Date: 2012-04-28 21:07+0000\n"
"Last-Translator: <jeanfi@gmail.com>\n"
"Language-Team: Brazilian Portuguese\n"
msgstr ""
#: src/glade/sensor-edit.glade:366
-msgid "High thresold:"
+msgid "High threshold:"
msgstr ""
#: src/glade/sensor-edit.glade:381
-msgid "Low thresold:"
+msgid "Low threshold:"
msgstr ""
#: src/lib/amd.c:150
msgstr ""
"Project-Id-Version: psensor 0.7.0.x\n"
"Report-Msgid-Bugs-To: jeanfi@gmail.com\n"
-"POT-Creation-Date: 2012-05-04 17:38+0200\n"
+"POT-Creation-Date: 2012-05-04 17:47+0200\n"
"PO-Revision-Date: 2012-05-02 17:33+0000\n"
"Last-Translator: Ilya Volchanetskiy <Unknown>\n"
"Language-Team: Russian\n"
msgstr ""
#: src/glade/sensor-edit.glade:366
-msgid "High thresold:"
+msgid "High threshold:"
msgstr ""
#: src/glade/sensor-edit.glade:381
-msgid "Low thresold:"
+msgid "Low threshold:"
msgstr ""
#: src/lib/amd.c:150
msgstr ""
"Project-Id-Version: psensor\n"
"Report-Msgid-Bugs-To: jeanfi@gmail.com\n"
-"POT-Creation-Date: 2012-05-04 17:38+0200\n"
+"POT-Creation-Date: 2012-05-04 17:47+0200\n"
"PO-Revision-Date: 2012-04-14 21:02+0000\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Slovenian <sl@li.org>\n"
msgstr ""
#: src/glade/sensor-edit.glade:366
-msgid "High thresold:"
+msgid "High threshold:"
msgstr ""
#: src/glade/sensor-edit.glade:381
-msgid "Low thresold:"
+msgid "Low threshold:"
msgstr ""
#: src/lib/amd.c:150
msgstr ""
"Project-Id-Version: psensor\n"
"Report-Msgid-Bugs-To: jeanfi@gmail.com\n"
-"POT-Creation-Date: 2012-05-04 17:38+0200\n"
+"POT-Creation-Date: 2012-05-04 17:47+0200\n"
"PO-Revision-Date: 2012-04-28 11:24+0000\n"
"Last-Translator: Мирослав Николић <miroslavnikolic@rocketmail.com>\n"
"Language-Team: Serbian <sr@li.org>\n"
msgstr ""
#: src/glade/sensor-edit.glade:366
-msgid "High thresold:"
+msgid "High threshold:"
msgstr ""
#: src/glade/sensor-edit.glade:381
-msgid "Low thresold:"
+msgid "Low threshold:"
msgstr ""
#: src/lib/amd.c:150
msgstr ""
"Project-Id-Version: psensor\n"
"Report-Msgid-Bugs-To: jeanfi@gmail.com\n"
-"POT-Creation-Date: 2012-05-04 17:38+0200\n"
+"POT-Creation-Date: 2012-05-04 17:47+0200\n"
"PO-Revision-Date: 2012-04-28 11:24+0000\n"
"Last-Translator: zeugma <Unknown>\n"
"Language-Team: Turkish <tr@li.org>\n"
msgstr ""
#: src/glade/sensor-edit.glade:366
-msgid "High thresold:"
+msgid "High threshold:"
msgstr ""
#: src/glade/sensor-edit.glade:381
-msgid "Low thresold:"
+msgid "Low threshold:"
msgstr ""
#: src/lib/amd.c:150
msgstr ""
"Project-Id-Version: psensor\n"
"Report-Msgid-Bugs-To: jeanfi@gmail.com\n"
-"POT-Creation-Date: 2012-05-04 17:38+0200\n"
+"POT-Creation-Date: 2012-05-04 17:47+0200\n"
"PO-Revision-Date: 2012-05-03 17:44+0000\n"
"Last-Translator: Ilya Volchanetskiy <Unknown>\n"
"Language-Team: Ukrainian <uk@li.org>\n"
msgstr ""
#: src/glade/sensor-edit.glade:366
-msgid "High thresold:"
+msgid "High threshold:"
msgstr ""
#: src/glade/sensor-edit.glade:381
-msgid "Low thresold:"
+msgid "Low threshold:"
msgstr ""
#: src/lib/amd.c:150
msgstr ""
"Project-Id-Version: psensor\n"
"Report-Msgid-Bugs-To: jeanfi@gmail.com\n"
-"POT-Creation-Date: 2012-05-04 17:38+0200\n"
+"POT-Creation-Date: 2012-05-04 17:47+0200\n"
"PO-Revision-Date: 2012-05-01 12:09+0000\n"
"Last-Translator: Wang Dianjin <Unknown>\n"
"Language-Team: Chinese (simplified)\n"
msgstr "绘制监视曲线"
#: src/glade/sensor-edit.glade:366
-msgid "High thresold:"
+msgid "High threshold:"
msgstr ""
#: src/glade/sensor-edit.glade:381
-msgid "Low thresold:"
+msgid "Low threshold:"
msgstr ""
#: src/lib/amd.c:150
static const char *KEY_SENSORS = "/apps/psensor/sensors";
static const char *ATT_SENSOR_ALARM_ENABLED = "alarm/enabled";
-static const char *ATT_SENSOR_ALARM_HIGH_THRESOLD = "alarm/high_thresold";
-static const char *ATT_SENSOR_ALARM_LOW_THRESOLD = "alarm/low_thresold";
+static const char *ATT_SENSOR_ALARM_HIGH_THRESHOLD = "alarm/high_threshold";
+static const char *ATT_SENSOR_ALARM_LOW_THRESHOLD = "alarm/low_threshold";
static const char *ATT_SENSOR_COLOR = "color";
static const char *ATT_SENSOR_ENABLED = "enabled";
static const char *ATT_SENSOR_NAME = "name";
free(key);
}
-int config_get_sensor_alarm_high_thresold(const char *sid)
+int config_get_sensor_alarm_high_threshold(const char *sid)
{
int res;
char *key;
- key = get_sensor_att_key(sid, ATT_SENSOR_ALARM_HIGH_THRESOLD);
+ key = get_sensor_att_key(sid, ATT_SENSOR_ALARM_HIGH_THRESHOLD);
res = gconf_client_get_int(client, key, NULL);
free(key);
}
void
-config_set_sensor_alarm_high_thresold(const char *sid, int thresold)
+config_set_sensor_alarm_high_threshold(const char *sid, int threshold)
{
char *key;
- key = get_sensor_att_key(sid, ATT_SENSOR_ALARM_HIGH_THRESOLD);
- gconf_client_set_int(client, key, thresold, NULL);
+ key = get_sensor_att_key(sid, ATT_SENSOR_ALARM_HIGH_THRESHOLD);
+ gconf_client_set_int(client, key, threshold, NULL);
free(key);
}
-int config_get_sensor_alarm_low_thresold(const char *sid)
+int config_get_sensor_alarm_low_threshold(const char *sid)
{
int res;
char *key;
- key = get_sensor_att_key(sid, ATT_SENSOR_ALARM_LOW_THRESOLD);
+ key = get_sensor_att_key(sid, ATT_SENSOR_ALARM_LOW_THRESHOLD);
res = gconf_client_get_int(client, key, NULL);
free(key);
}
void
-config_set_sensor_alarm_low_thresold(const char *sid, int thresold)
+config_set_sensor_alarm_low_threshold(const char *sid, int threshold)
{
char *key;
- key = get_sensor_att_key(sid, ATT_SENSOR_ALARM_LOW_THRESOLD);
- gconf_client_set_int(client, key, thresold, NULL);
+ key = get_sensor_att_key(sid, ATT_SENSOR_ALARM_LOW_THRESHOLD);
+ gconf_client_set_int(client, key, threshold, NULL);
free(key);
}
struct color *config_get_sensor_color(const char *sid, const struct color *);
void config_set_sensor_color(const char *sid, const struct color *);
-int config_get_sensor_alarm_high_thresold(const char *);
-void config_set_sensor_alarm_high_thresold(const char *, int);
+int config_get_sensor_alarm_high_threshold(const char *);
+void config_set_sensor_alarm_high_threshold(const char *, int);
-int config_get_sensor_alarm_low_thresold(const char *);
-void config_set_sensor_alarm_low_thresold(const char *, int);
+int config_get_sensor_alarm_low_threshold(const char *);
+void config_set_sensor_alarm_low_threshold(const char *, int);
int config_get_sensor_alarm_enabled(const char *);
void config_set_sensor_alarm_enabled(const char *, int);
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
- <object class="GtkAdjustment" id="alarm_high_thresold_value">
+ <object class="GtkAdjustment" id="alarm_high_threshold_value">
<property name="lower">-9999</property>
<property name="upper">9999</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>
</object>
- <object class="GtkAdjustment" id="alarm_low_thresold_value">
+ <object class="GtkAdjustment" id="alarm_low_threshold_value">
<property name="lower">-9999</property>
<property name="upper">9999</property>
<property name="step_increment">1</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
- <object class="GtkSpinButton" id="sensor_alarm_high_thresold">
+ <object class="GtkSpinButton" id="sensor_alarm_high_threshold">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">•</property>
<property name="invisible_char_set">True</property>
<property name="primary_icon_activatable">False</property>
<property name="secondary_icon_activatable">False</property>
- <property name="adjustment">alarm_high_thresold_value</property>
+ <property name="adjustment">alarm_high_threshold_value</property>
<property name="climb_rate">1</property>
<property name="snap_to_ticks">True</property>
<property name="numeric">True</property>
</packing>
</child>
<child>
- <object class="GtkLabel" id="sensor_alarm_high_thresold_unit">
+ <object class="GtkLabel" id="sensor_alarm_high_threshold_unit">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">start</property>
</packing>
</child>
<child>
- <object class="GtkLabel" id="alarm_high_thresold_label">
+ <object class="GtkLabel" id="alarm_high_threshold_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0.0099999997764825821</property>
- <property name="label" translatable="yes">High thresold:</property>
+ <property name="label" translatable="yes">High threshold:</property>
</object>
<packing>
<property name="top_attach">9</property>
</packing>
</child>
<child>
- <object class="GtkLabel" id="alarm_low_thresold_label">
+ <object class="GtkLabel" id="alarm_low_threshold_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0.0099999997764825821</property>
- <property name="label" translatable="yes">Low thresold:</property>
+ <property name="label" translatable="yes">Low threshold:</property>
</object>
<packing>
<property name="top_attach">10</property>
</packing>
</child>
<child>
- <object class="GtkHBox" id="alarm_low_thresold_box">
+ <object class="GtkHBox" id="alarm_low_threshold_box">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
- <object class="GtkSpinButton" id="sensor_alarm_low_thresold">
+ <object class="GtkSpinButton" id="sensor_alarm_low_threshold">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">•</property>
<property name="invisible_char_set">True</property>
<property name="primary_icon_activatable">False</property>
<property name="secondary_icon_activatable">False</property>
- <property name="adjustment">alarm_low_thresold_value</property>
+ <property name="adjustment">alarm_low_threshold_value</property>
<property name="climb_rate">1</property>
<property name="snap_to_ticks">True</property>
<property name="numeric">True</property>
</packing>
</child>
<child>
- <object class="GtkLabel" id="sensor_alarm_low_thresold_unit">
+ <object class="GtkLabel" id="sensor_alarm_low_threshold_unit">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">start</property>
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;
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);
/* Whether alarm alert is enabled for this sensor */
unsigned int alarm_enabled;
- int alarm_high_thresold;
- int alarm_low_thresold;
+ int alarm_high_threshold;
+ int alarm_low_threshold;
/* Whether an alarm is raised for this sensor */
unsigned int alarm_raised;
s->cb_alarm_raised = cb_alarm_raised;
s->cb_alarm_raised_data = ui;
- s->alarm_high_thresold
- = config_get_sensor_alarm_high_thresold(s->id);
- s->alarm_low_thresold
- = config_get_sensor_alarm_low_thresold(s->id);
+ s->alarm_high_threshold
+ = config_get_sensor_alarm_high_threshold(s->id);
+ s->alarm_low_threshold
+ = config_get_sensor_alarm_low_threshold(s->id);
if (is_temp_type(s->type) || is_fan_type(s->type)) {
s->alarm_enabled
= config_get_sensor_alarm_enabled(s->id);
} else {
- s->alarm_high_thresold = 0;
+ s->alarm_high_threshold = 0;
s->alarm_enabled = 0;
}
int enabled;
struct color *color;
int alarm_enabled;
- int alarm_high_thresold;
- int alarm_low_thresold;
+ int alarm_high_threshold;
+ int alarm_low_threshold;
};
struct cb_data {
p->color = color_dup(s->color);
if (cfg->temperature_unit == CELCIUS) {
- p->alarm_high_thresold = s->alarm_high_thresold;
- p->alarm_low_thresold = s->alarm_low_thresold;
+ p->alarm_high_threshold = s->alarm_high_threshold;
+ p->alarm_low_threshold = s->alarm_low_threshold;
} else {
- p->alarm_high_thresold
- = celcius_to_fahrenheit(s->alarm_high_thresold);
- p->alarm_low_thresold
- = celcius_to_fahrenheit(s->alarm_low_thresold);
+ p->alarm_high_threshold
+ = celcius_to_fahrenheit(s->alarm_high_threshold);
+ p->alarm_low_threshold
+ = celcius_to_fahrenheit(s->alarm_low_threshold);
}
return p;
}
}
-static void on_alarm_high_thresold_changed(GtkSpinButton *btn, gpointer data)
+static void on_alarm_high_threshold_changed(GtkSpinButton *btn, gpointer data)
{
struct cb_data *cbdata;
struct sensor_pref *p;
p = get_selected_sensor_pref(cbdata->builder, cbdata->prefs);
if (p)
- p->alarm_high_thresold = gtk_spin_button_get_value(btn);
+ p->alarm_high_threshold = gtk_spin_button_get_value(btn);
}
-static void on_alarm_low_thresold_changed(GtkSpinButton *btn, gpointer data)
+static void on_alarm_low_threshold_changed(GtkSpinButton *btn, gpointer data)
{
struct cb_data *cbdata;
struct sensor_pref *p;
p = get_selected_sensor_pref(cbdata->builder, cbdata->prefs);
if (p)
- p->alarm_low_thresold = gtk_spin_button_get_value(btn);
+ p->alarm_low_threshold = gtk_spin_button_get_value(btn);
}
static void connect_signals(GtkBuilder *builder, struct cb_data *cbdata)
"toggled", G_CALLBACK(on_alarm_toggled), cbdata);
g_signal_connect(gtk_builder_get_object(builder,
- "sensor_alarm_high_thresold"),
+ "sensor_alarm_high_threshold"),
"value-changed",
- G_CALLBACK(on_alarm_high_thresold_changed),
+ G_CALLBACK(on_alarm_high_threshold_changed),
cbdata);
g_signal_connect(gtk_builder_get_object(builder,
- "sensor_alarm_low_thresold"),
+ "sensor_alarm_low_threshold"),
"value-changed",
- G_CALLBACK(on_alarm_low_thresold_changed),
+ G_CALLBACK(on_alarm_low_threshold_changed),
cbdata);
}
struct config *cfg,
GtkBuilder *builder)
{
- GtkLabel *w_id, *w_type, *w_high_thresold_unit, *w_low_thresold_unit;
+ GtkLabel *w_id, *w_type, *w_high_threshold_unit, *w_low_threshold_unit;
GtkEntry *w_name;
GtkToggleButton *w_draw, *w_alarm;
GtkColorButton *w_color;
- GtkSpinButton *w_high_thresold, *w_low_thresold;
+ GtkSpinButton *w_high_threshold, *w_low_threshold;
GdkColor *color;
struct sensor_pref *p = sensor_pref_get(prefs, s);
int use_celcius;
w_alarm = GTK_TOGGLE_BUTTON(gtk_builder_get_object(builder,
"sensor_alarm"));
- w_high_thresold = GTK_SPIN_BUTTON(gtk_builder_get_object
+ w_high_threshold = GTK_SPIN_BUTTON(gtk_builder_get_object
(builder,
- "sensor_alarm_high_thresold"));
- w_low_thresold = GTK_SPIN_BUTTON(gtk_builder_get_object
+ "sensor_alarm_high_threshold"));
+ w_low_threshold = GTK_SPIN_BUTTON(gtk_builder_get_object
(builder,
- "sensor_alarm_low_thresold"));
+ "sensor_alarm_low_threshold"));
- w_high_thresold_unit = GTK_LABEL(gtk_builder_get_object
+ w_high_threshold_unit = GTK_LABEL(gtk_builder_get_object
(builder,
- "sensor_alarm_high_thresold_unit"));
- w_low_thresold_unit = GTK_LABEL(gtk_builder_get_object
+ "sensor_alarm_high_threshold_unit"));
+ w_low_threshold_unit = GTK_LABEL(gtk_builder_get_object
(builder,
- "sensor_alarm_low_thresold_unit"));
+ "sensor_alarm_low_threshold_unit"));
use_celcius = cfg->temperature_unit == CELCIUS ? 1 : 0;
- gtk_label_set_text(w_high_thresold_unit,
+ gtk_label_set_text(w_high_threshold_unit,
psensor_type_to_unit_str(s->type,
use_celcius));
- gtk_label_set_text(w_low_thresold_unit,
+ gtk_label_set_text(w_low_threshold_unit,
psensor_type_to_unit_str(s->type,
use_celcius));
if (is_temp_type(s->type) || is_fan_type(s->type)) {
gtk_toggle_button_set_active(w_alarm, p->alarm_enabled);
- gtk_spin_button_set_value(w_high_thresold,
- p->alarm_high_thresold);
- gtk_spin_button_set_value(w_low_thresold,
- p->alarm_low_thresold);
+ gtk_spin_button_set_value(w_high_threshold,
+ p->alarm_high_threshold);
+ gtk_spin_button_set_value(w_low_threshold,
+ p->alarm_low_threshold);
gtk_widget_set_sensitive(GTK_WIDGET(w_alarm), TRUE);
- gtk_widget_set_sensitive(GTK_WIDGET(w_high_thresold), TRUE);
- gtk_widget_set_sensitive(GTK_WIDGET(w_low_thresold), TRUE);
+ gtk_widget_set_sensitive(GTK_WIDGET(w_high_threshold), TRUE);
+ gtk_widget_set_sensitive(GTK_WIDGET(w_low_threshold), TRUE);
} else {
gtk_toggle_button_set_active(w_alarm, 0);
- gtk_spin_button_set_value(w_high_thresold, 0);
- gtk_spin_button_set_value(w_low_thresold, 0);
+ gtk_spin_button_set_value(w_high_threshold, 0);
+ gtk_spin_button_set_value(w_low_threshold, 0);
gtk_widget_set_sensitive(GTK_WIDGET(w_alarm), FALSE);
- gtk_widget_set_sensitive(GTK_WIDGET(w_high_thresold), FALSE);
- gtk_widget_set_sensitive(GTK_WIDGET(w_low_thresold), FALSE);
+ gtk_widget_set_sensitive(GTK_WIDGET(w_high_threshold), FALSE);
+ gtk_widget_set_sensitive(GTK_WIDGET(w_low_threshold), FALSE);
}
}
if (is_temp_type(s->type)
&& cfg->temperature_unit == FAHRENHEIT) {
- s->alarm_high_thresold = fahrenheit_to_celcius
- (p->alarm_high_thresold);
- s->alarm_low_thresold = fahrenheit_to_celcius
- (p->alarm_low_thresold);
+ s->alarm_high_threshold = fahrenheit_to_celcius
+ (p->alarm_high_threshold);
+ s->alarm_low_threshold = fahrenheit_to_celcius
+ (p->alarm_low_threshold);
} else {
- s->alarm_high_thresold = p->alarm_high_thresold;
- s->alarm_low_thresold = p->alarm_low_thresold;
+ s->alarm_high_threshold = p->alarm_high_threshold;
+ s->alarm_low_threshold = p->alarm_low_threshold;
}
- config_set_sensor_alarm_high_thresold(s->id,
- s->alarm_high_thresold);
- config_set_sensor_alarm_low_thresold(s->id,
- s->alarm_low_thresold);
+ config_set_sensor_alarm_high_threshold(s->id,
+ s->alarm_high_threshold);
+ config_set_sensor_alarm_low_threshold(s->id,
+ s->alarm_low_threshold);
if (s->alarm_enabled != p->alarm_enabled) {
s->alarm_enabled = p->alarm_enabled;