diff options
author | info-cppsp <[email protected]> | 2018-01-24 21:11:34 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-01-25 14:59:35 +0100 |
commit | aaddbc0387c7e4089fe1d828ae422f2c88885d9f (patch) | |
tree | e95bc90a835060814d600f23ce845d808f037ee7 /sensors-applet/active-sensor.h | |
parent | 826c61d7a97c6dcb4a5136dfc15cc6702515b480 (diff) | |
download | mate-sensors-applet-aaddbc0387c7e4089fe1d828ae422f2c88885d9f.tar.bz2 mate-sensors-applet-aaddbc0387c7e4089fe1d828ae422f2c88885d9f.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 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; |