Make the task iteration duration 1 second instead of 500ms.

This commit is contained in:
Bharat Mediratta
2009-04-21 04:16:30 +00:00
parent ace6335e64
commit 6c911d2d7c
+1 -1
View File
@@ -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++;