X-Git-Url: http://wpitchoune.net/gitweb/?p=psensor-pkg-debian.git;a=blobdiff_plain;f=src%2Fui_notify.c;h=6361f06648d678160f2bc376ecc025e6e8b50a6a;hp=7e7217d820a5150d10a849e45197546ea68b59c9;hb=9cb6e128adf4afce6545344b9c2f9619e18ca866;hpb=1b39809fbf70fd176646aa2343774bdf04951ee9;ds=sidebyside diff --git a/src/ui_notify.c b/src/ui_notify.c index 7e7217d..6361f06 100644 --- a/src/ui_notify.c +++ b/src/ui_notify.c @@ -40,7 +40,7 @@ void ui_notify(struct psensor *sensor, struct ui_psensor *ui) char *body, *svalue; const char *summary; NotifyNotification *notif; - unsigned int use_celcius; + unsigned int use_celsius; log_debug("last_notification %d", last_notification_tv.tv_sec); @@ -59,15 +59,15 @@ void ui_notify(struct psensor *sensor, struct ui_psensor *ui) notify_init("psensor"); if (notify_is_initted() == TRUE) { - if (ui->config->temperature_unit == CELCIUS) - use_celcius = 1; + if (ui->config->temperature_unit == CELSIUS) + use_celsius = 1; else - use_celcius = 0; + use_celsius = 0; svalue = psensor_measure_to_str (psensor_get_current_measure(sensor), sensor->type, - use_celcius); + use_celsius); body = malloc(strlen(sensor->name) + 3 + strlen(svalue) + 1); sprintf(body, "%s : %s", sensor->name, svalue);