summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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())