X-Git-Url: http://git.wpitchoune.net/gitweb/?p=psensor.git;a=blobdiff_plain;f=src%2Fui_sensorpref.c;h=5816c3f93e8198338a5cc3fa53a4b4adb82da188;hp=77dba01274f01d4caf8b0eed223e135fa8f03e39;hb=0f1747433389f5885c0892c2ffb4f3bec0279d14;hpb=043f76c460147ef40f1b47570304eb2d1340d079 diff --git a/src/ui_sensorpref.c b/src/ui_sensorpref.c index 77dba01..5816c3f 100644 --- a/src/ui_sensorpref.c +++ b/src/ui_sensorpref.c @@ -365,8 +365,7 @@ static void apply_pref(struct sensor_pref *p, int pos, struct config *cfg) config_set_sensor_enabled(s->id, s->enabled); } - if (is_temp_type(s->type) - && cfg->temperature_unit == FAHRENHEIT) { + if (is_temp_type(s->type) && cfg->temperature_unit == FAHRENHEIT) { s->alarm_high_threshold = fahrenheit_to_celcius(p->alarm_high_threshold); s->alarm_low_threshold