diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-04-21 04:16:30 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-04-21 04:16:30 +0000 |
commit | 6c911d2d7c044ffb18a2ea761bc5625789aa6523 (patch) | |
tree | 9f62dc27cecc5b0f2668c5bf6955d042d2632221 | |
parent | ace6335e64b29ada7838938a2346d3cae3982c98 (diff) |
Make the task iteration duration 1 second instead of 500ms.
-rw-r--r-- | modules/search/helpers/search_task.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/search/helpers/search_task.php b/modules/search/helpers/search_task.php index 892ff4d4..4bd9acd7 100644 --- a/modules/search/helpers/search_task.php +++ b/modules/search/helpers/search_task.php @@ -47,7 +47,7 @@ class search_task_Core { $completed = $task->get("completed", 0); $start = microtime(true); - while (!$task->done && microtime(true) - $start < .5) { + while (!$task->done && microtime(true) - $start < 1) { foreach (ORM::factory("search_record")->where("dirty", 1)->limit(5)->find_all() as $record) { search::update_record($record); $completed++; |