summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2019-12-15 11:10:33 +0100
committerhorchi <vdr@jwendel.de>2019-12-15 11:10:33 +0100
commit71cd4593136eeaf7612f6ca44e61172221d77b77 (patch)
treebca2cf57b7384eb0f106443b9a5aec75242b5b33
parentf84fcd3690002bc5357e801eb4062d2fe6bc3d30 (diff)
downloadvdr-epg-daemon-71cd4593136eeaf7612f6ca44e61172221d77b77.tar.gz
vdr-epg-daemon-71cd4593136eeaf7612f6ca44e61172221d77b77.tar.bz2
timer cleanup
-rw-r--r--update.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/update.c b/update.c
index 35fa2d8..986361f 100644
--- a/update.c
+++ b/update.c
@@ -1719,10 +1719,10 @@ void cEpgd::loop()
" and from_unixtime(updsp) < (now() - interval 5 minute);");
-// connection->query("%s", "update timers set"
-// " state = 'D' "
-// " where state = 'R'"
-// #todo " and from_unixtime(updsp) < (now() - interval 5 minute);");
+ connection->query(" update timers set"
+ " state = 'F', action = 'A', info = 'cleanuped'"
+ " where (state = 'R' or state = 'P')"
+ " and from_unixtime(_endtime) < (now() - interval 5 minute);");
}
if (!dbConnected())