mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-23 10:01:55 +02:00
[ticket/16940] Optimize phpBB Native Search
- Fixed infinite loop PHPBB3-16940
This commit is contained in:
@@ -345,7 +345,7 @@ class acp_search
|
|||||||
// save the current state
|
// save the current state
|
||||||
$this->save_state();
|
$this->save_state();
|
||||||
|
|
||||||
if ($post_counter <= $this->max_post_id)
|
if ($post_counter < $this->max_post_id)
|
||||||
{
|
{
|
||||||
$totaltime = microtime(true) - $starttime;
|
$totaltime = microtime(true) - $starttime;
|
||||||
$rows_per_second = $row_count / $totaltime;
|
$rows_per_second = $row_count / $totaltime;
|
||||||
@@ -431,7 +431,7 @@ class acp_search
|
|||||||
$this->search->tidy();
|
$this->search->tidy();
|
||||||
$config['num_posts'] = $num_posts;
|
$config['num_posts'] = $num_posts;
|
||||||
|
|
||||||
if ($post_counter <= $this->max_post_id)
|
if ($post_counter < $this->max_post_id)
|
||||||
{
|
{
|
||||||
$totaltime = microtime(true) - $starttime;
|
$totaltime = microtime(true) - $starttime;
|
||||||
$rows_per_second = $row_count / $totaltime;
|
$rows_per_second = $row_count / $totaltime;
|
||||||
|
Reference in New Issue
Block a user