diff options
author | Andrew Dolgov <[email protected]> | 2006-02-11 15:01:11 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-02-11 15:01:11 +0100 |
commit | 9d1ef64ea94247e47d0283e83ff7d497f26fbe9d (patch) | |
tree | 8b1979658944dbbac5719954665d3be825b121ab /update_daemon.php | |
parent | b3295162406eb2050ba59a1009ddb86df8ebe471 (diff) |
more update_daemon work
Diffstat (limited to 'update_daemon.php')
-rw-r--r-- | update_daemon.php | 9 |
1 files changed, 6 insertions, 3 deletions
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); |