diff --git a/tools/profiling/Controller.php b/tools/profiling/Controller.php index 5fee49cb2..82ba93643 100644 --- a/tools/profiling/Controller.php +++ b/tools/profiling/Controller.php @@ -466,13 +466,19 @@ abstract class Controller extends ControllerCore echo '
Useless GROUP BY need to be removed'; } } - echo ' -
-

Doubles (IDs replaced by "XX") (total = '.count(Db::getInstance()->uniqQueries).')

'; $queries = Db::getInstance()->uniqQueries; arsort($queries); + $count = count(Db::getInstance()->uniqQueries); + foreach ($queries as $q => &$nb) + if ($nb == 1) + $count--; + if ($count) + echo '
+
+

Doubles (IDs replaced by "XX") (total = '.$count.')

'; foreach ($queries as $q => $nb) - echo $hr.'getQueryColor($nb).'>'.$nb.' '.$q; + if($nb > 1) + echo $hr.'getQueryColor($nb).'>'.$nb.' '.$q; echo '

Tables stress

';