diff options
author | Andrew Dolgov <[email protected]> | 2008-01-23 10:21:52 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2008-01-23 10:21:52 +0100 |
commit | e620f72f323eaefbec5772930f0bed1dc704292b (patch) | |
tree | 737611b021f44dac24aaec09cc651631b0b28f9d /update_daemon2_client.php | |
parent | 02008cb19ac99727889cca05c7eddfbeef30d684 (diff) |
fix last_update_started checking
Diffstat (limited to 'update_daemon2_client.php')
-rw-r--r-- | update_daemon2_client.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/update_daemon2_client.php b/update_daemon2_client.php index 2d069c37d..2c46e428b 100644 --- a/update_daemon2_client.php +++ b/update_daemon2_client.php @@ -95,9 +95,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, |