diff options
author | horchi <vdr@jwendel.de> | 2019-12-15 11:10:33 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2019-12-15 11:10:33 +0100 |
commit | 71cd4593136eeaf7612f6ca44e61172221d77b77 (patch) | |
tree | bca2cf57b7384eb0f106443b9a5aec75242b5b33 | |
parent | f84fcd3690002bc5357e801eb4062d2fe6bc3d30 (diff) | |
download | vdr-epg-daemon-71cd4593136eeaf7612f6ca44e61172221d77b77.tar.gz vdr-epg-daemon-71cd4593136eeaf7612f6ca44e61172221d77b77.tar.bz2 |
timer cleanup
-rw-r--r-- | update.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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()) |