From e620f72f323eaefbec5772930f0bed1dc704292b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 23 Jan 2008 10:21:52 +0100 Subject: fix last_update_started checking --- update_daemon.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'update_daemon.php') diff --git a/update_daemon.php b/update_daemon.php index 2303108a6..689d1aab2 100644 --- a/update_daemon.php +++ b/update_daemon.php @@ -133,9 +133,9 @@ } if (DB_TYPE == "pgsql") { - $updstart_thresh_qpart = "AND (ttrss_feeds.last_update_started IS NULL OR ttrss_feeds.last_update_started >= NOW() - INTERVAL '120 seconds')"; + $updstart_thresh_qpart = "AND (ttrss_feeds.last_update_started IS NULL OR ttrss_feeds.last_update_started < NOW() - INTERVAL '120 seconds')"; } else { - $updstart_thresh_qpart = "AND (ttrss_feeds.last_update_started IS NULL OR ttrss_feeds.last_update_started >= DATE_SUB(NOW(), INTERVAL 120 SECOND))"; + $updstart_thresh_qpart = "AND (ttrss_feeds.last_update_started IS NULL OR ttrss_feeds.last_update_started < DATE_SUB(NOW(), INTERVAL 120 SECOND))"; } $result = db_query($link, "SELECT feed_url,ttrss_feeds.id,owner_uid, -- cgit v1.2.3-54-g00ecf