Imported Upstream version 1.1.2
[psensor-pkg-ubuntu.git] / src / ui_notify.c
index 6361f06..a668014 100644 (file)
@@ -53,7 +53,7 @@ void ui_notify(struct psensor *sensor, struct ui_psensor *ui)
            || t.tv_sec - last_notification_tv.tv_sec >= 60)
                last_notification_tv = t;
        else
-               return ;
+               return;
 
        if (notify_is_initted() == FALSE)
                notify_init("psensor");
@@ -75,8 +75,8 @@ void ui_notify(struct psensor *sensor, struct ui_psensor *ui)
 
                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");