]> git.wh0rd.org - tt-rss.git/blobdiff - update_daemon.php
more update_daemon work
[tt-rss.git] / update_daemon.php
index 4f30cb53e22ce50ef016d00c6eef6261ec0b30eb..0e5424d43e34a87b6915959a0a860d2fe3721447 100644 (file)
                        $upd_intl = get_pref($link, 'DEFAULT_UPDATE_INTERVAL', $user_id);
                }
 
-               if ($fetch || (!$line["last_updated"] || 
-                       time() - strtotime($line["last_updated"]) > ($upd_intl * 60))) {
+#              printf("%d ? %d\n", time() - strtotime($line["last_updated"]) > $upd_intl*60,
+#                      $upd_intl*60);
+
+               if (!$line["last_updated"] || 
+                       time() - strtotime($line["last_updated"]) > ($upd_intl * 60)) {
 
                        print "Updating...\n";
 
@@ -58,7 +61,7 @@
                }
        }
 
-       sleep(SLEEP_INTERVAL);
+//     sleep(SLEEP_INTERVAL);
 
        db_close($link);