From: <bh...@us...> - 2009-04-21 04:16:34
|
Revision: 20595 http://gallery.svn.sourceforge.net/gallery/?rev=20595&view=rev Author: bharat Date: 2009-04-21 04:16:30 +0000 (Tue, 21 Apr 2009) Log Message: ----------- Make the task iteration duration 1 second instead of 500ms. Modified Paths: -------------- gallery3/trunk/modules/search/helpers/search_task.php Modified: gallery3/trunk/modules/search/helpers/search_task.php =================================================================== --- gallery3/trunk/modules/search/helpers/search_task.php 2009-04-21 03:12:14 UTC (rev 20594) +++ gallery3/trunk/modules/search/helpers/search_task.php 2009-04-21 04:16:30 UTC (rev 20595) @@ -47,7 +47,7 @@ $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++; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |