]> git.wh0rd.org - tt-rss.git/commitdiff
daemon output tweaks
authorAndrew Dolgov <fox@madoka.spb.ru>
Sun, 12 Feb 2006 07:51:17 +0000 (08:51 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Sun, 12 Feb 2006 07:51:17 +0000 (08:51 +0100)
update_daemon.php

index b9d5d571aca782e6261db8f68221a5598fb92039..d220266fce42e418939700d891305adab066d04c 100644 (file)
        
                while ($line = db_fetch_assoc($result)) {
        
-                       print "Feed: " . $line["feed_url"] . ": ";
-       
                        $upd_intl = $line["update_interval"];
-       
                        $user_id = $line["owner_uid"];
        
                        if (!$upd_intl || $upd_intl == 0) {
                        }
 
                        if ($upd_intl < 0) { 
-                               print "Updates disabled.\n";
+#                              print "Updates disabled.\n";
                                continue; 
                        }
        
-#                      printf("%d ? %d\n", time() - strtotime($line["last_updated"]) > $upd_intl*60,
-#                              $upd_intl*60);
+                       print "Feed: " . $line["feed_url"] . ": ";
+
+                       printf("(%d ? %d) ", time() - strtotime($line["last_updated"]),
+                               $upd_intl*60);
        
                        if (!$line["last_updated"] || 
                                time() - strtotime($line["last_updated"]) > ($upd_intl * 60)) {