]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix last_update_started checking
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 23 Jan 2008 09:21:52 +0000 (10:21 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 23 Jan 2008 09:21:52 +0000 (10:21 +0100)
functions.php
update_daemon.php
update_daemon2_client.php

index 9bd98795b646009b0126868ee3efd06ecf7218ab..bdc702d490e2726fb0695590d3e0abd979cea4f1 100644 (file)
                }
 
                if (DB_TYPE == "pgsql") {
-                               $updstart_thresh_qpart = "(ttrss_feeds.last_update_started IS NULL OR ttrss_feeds.last_update_started >= NOW() - INTERVAL '120 seconds')";
+                               $updstart_thresh_qpart = "(ttrss_feeds.last_update_started IS NULL OR ttrss_feeds.last_update_started < NOW() - INTERVAL '120 seconds')";
                        } else {
-                               $updstart_thresh_qpart = "(ttrss_feeds.last_update_started IS NULL OR ttrss_feeds.last_update_started >= DATE_SUB(NOW(), INTERVAL 120 SECOND))";
+                               $updstart_thresh_qpart = "(ttrss_feeds.last_update_started IS NULL OR ttrss_feeds.last_update_started < DATE_SUB(NOW(), INTERVAL 120 SECOND))";
                        }                       
 
                $result = db_query($link, "SELECT id,update_interval,auth_login,
index 2303108a6039e95bfb97ad295f67e8c764d07c2e..689d1aab27580161e3c7babcec74a706ac009c3c 100644 (file)
                }
 
                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,
index 2d069c37d87b7386065479ef9602348fcd2aeb5d..2c46e428b7d80271722bd59794c85de4401089aa 100644 (file)
@@ -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,