diff --git a/plugins/system/debug/debug.php b/plugins/system/debug/debug.php index c9e744ba64354..7c534f7f2f6b7 100644 --- a/plugins/system/debug/debug.php +++ b/plugins/system/debug/debug.php @@ -748,7 +748,7 @@ protected function displayQueries() // How heavy should the string length count: 0 - 1. $ratio = 0.5; - $timeScore = $queryTime / (strlen($query) * $ratio) * 200; + $timeScore = $queryTime / ((strlen($query) + 1) * $ratio) * 200; // Determine color of bargraph depending on query speed and presence of warnings in EXPLAIN. if ($timeScore > 10)