From 9d1ef64ea94247e47d0283e83ff7d497f26fbe9d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 11 Feb 2006 15:01:11 +0100 Subject: more update_daemon work --- update_daemon.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'update_daemon.php') diff --git a/update_daemon.php b/update_daemon.php index 4f30cb53e..0e5424d43 100644 --- a/update_daemon.php +++ b/update_daemon.php @@ -48,8 +48,11 @@ $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); -- cgit v1.2.3