|| t.tv_sec - last_notification_tv.tv_sec >= 60)
last_notification_tv = t;
else
- return ;
+ return;
if (notify_is_initted() == FALSE)
notify_init("psensor");
if (notify_is_initted() == TRUE) {
- if (ui->config->temperature_unit == CELSIUS)
+ if (config_get_temperature_unit() == CELSIUS)
use_celsius = 1;
else
use_celsius = 0;
if (is_temp_type(sensor->type))
summary = _("Temperature alert");
- else if (is_fan_type(sensor->type))
- summary = _("Fan alert");
+ else if (sensor->type & SENSOR_TYPE_RPM)
+ summary = _("Fan speed alert");
else
summary = _("N/A");