Increase the discover timeframe

This commit is contained in:
Michael Vogel 2015-09-03 22:16:29 +02:00
parent ffc9f94149
commit 94dcccd1b9
1 changed files with 2 additions and 2 deletions

View File

@ -1259,8 +1259,8 @@ function poco_discover($complete = false) {
$no_of_queries = 5; $no_of_queries = 5;
$last_update = date("c", time() - (60 * 60 * 6)); // 24 //$last_update = date("c", time() - (60 * 60 * 24)); // 24
$last_update = date("c", time() - (60 * 60 * 24)); // 24 $last_update = date("c", time() - (60 * 60 * 24 * 7));
$r = q("SELECT `poco`, `nurl`, `url`, `network` FROM `gserver` WHERE `last_contact` >= `last_failure` AND `poco` != '' AND `last_poco_query` < '%s' ORDER BY RAND()", dbesc($last_update)); $r = q("SELECT `poco`, `nurl`, `url`, `network` FROM `gserver` WHERE `last_contact` >= `last_failure` AND `poco` != '' AND `last_poco_query` < '%s' ORDER BY RAND()", dbesc($last_update));
if ($r) if ($r)