diff options
author | info-cppsp <[email protected]> | 2018-01-24 21:11:34 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-01-25 16:16:02 +0100 |
commit | b3fb40e7caae0ee8a60b36bdee3dd173a40f3463 (patch) | |
tree | 1bee7131e760e947c238e2264b16f28afabafcdd /sensors-applet/active-sensor.h | |
parent | 0b86b690bda730e5181eac76f89e721898aa50f3 (diff) | |
download | mate-sensors-applet-b3fb40e7caae0ee8a60b36bdee3dd173a40f3463.tar.bz2 mate-sensors-applet-b3fb40e7caae0ee8a60b36bdee3dd173a40f3463.tar.xz |
Fix popup shower on removed HDD
Added timer to active sensors, to suppress infinite popups, when a drive is removed from the system, with its sensor still active in msa.
fixes #62
Diffstat (limited to 'sensors-applet/active-sensor.h')
-rw-r--r-- | sensors-applet/active-sensor.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sensors-applet/active-sensor.h b/sensors-applet/active-sensor.h index 375fa75..aac0e05 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; |