updated copyright end date to 2013
[psensor.git] / src / ui_notify.c
index 73a6cc5..7e7217d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010-2012 jeanfi@gmail.com
+ * Copyright (C) 2010-2014 jeanfi@gmail.com
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
@@ -45,7 +45,7 @@ void ui_notify(struct psensor *sensor, struct ui_psensor *ui)
        log_debug("last_notification %d", last_notification_tv.tv_sec);
 
        if (gettimeofday(&t, NULL) != 0) {
-               log_err(_("gettimeofday failed"));
+               log_err(_("gettimeofday failed."));
                return;
        }
 
@@ -75,6 +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
                        summary = _("N/A");