summaryrefslogtreecommitdiff
path: root/sensors-applet/active-sensor.h
diff options
context:
space:
mode:
Diffstat (limited to 'sensors-applet/active-sensor.h')
-rw-r--r--sensors-applet/active-sensor.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sensors-applet/active-sensor.h b/sensors-applet/active-sensor.h
index 6db381e..5c5e864 100644
--- a/sensors-applet/active-sensor.h
+++ b/sensors-applet/active-sensor.h
@@ -20,6 +20,7 @@
#define ACTIVE_SENSOR_H
#ifdef HAVE_LIBNOTIFY
+#include <time.h>
#include <libnotify/notify.h>
#include "active-sensor-libnotify.h"
#endif
@@ -42,6 +43,8 @@ struct _ActiveSensor {
#ifdef HAVE_LIBNOTIFY
NotifyNotification *notification[NUM_NOTIFS];
+ /* error timestamp - save the time of the last SENSOR_INTERFACE_ERROR */
+ time_t ierror_ts;
#endif
gboolean updated;