mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-22 23:05:18 -04:00
Make the task iteration duration 1 second instead of 500ms.
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user