From 5f00be0b72fbc8f216771918ca3c8ccedf504547 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Wed, 27 Jul 2022 13:24:46 +0530 Subject: [PATCH] Text changes in profiling data display --- tools/profiling/Controller.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/profiling/Controller.php b/tools/profiling/Controller.php index 9524458d5..548bbcf0e 100644 --- a/tools/profiling/Controller.php +++ b/tools/profiling/Controller.php @@ -110,7 +110,7 @@ abstract class Controller extends ControllerCore private function getLoadTimeColor($n, $kikoo = false) { if ($n > 1.6) { - return ''.round($n * 1000).''.($kikoo ? ' ms - You\'d better run your shop on a toaster' : ''); + return ''.round($n * 1000).''.($kikoo ? ' ms - You\'d better run your website on a toaster' : ''); } elseif ($n > 0.8) { return ''.round($n * 1000).''.($kikoo ? ' ms - OK... for a shared hosting' : ''); } elseif ($n > 0) { @@ -454,7 +454,7 @@ abstract class Controller extends ControllerCore Queries'.$this->getNbQueriesColor(count($this->array_queries)).' Memory Peak Usage'.$this->getPeakMemoryColor($this->profiler[count($this->profiler) - 1]['peak_memory_usage']).' Mb Included Files'.count(get_included_files()).' files - '.$this->getMemoryColor($this->total_filesize).' Mb - PrestaShop Cache'.$this->getMemoryColor($this->total_cache_size).' Mb + QloApps Cache'.$this->getMemoryColor($this->total_cache_size).' Mb Global vars'.$this->getMemoryColor($this->total_global_var_size).' Mb'; foreach ($this->global_var_size as $global => $size) { echo '- global $'.$global.''.$size.'k'; @@ -469,7 +469,7 @@ abstract class Controller extends ControllerCore echo '
- +
PrestaShop Version'._PS_VERSION_.'
QloApps Version'._QLOAPPS_VERSION_.'
PHP Version'.$this->getPhpVersionColor(phpversion()).'
MySQL Version'.$this->getMySQLVersionColor(Db::getInstance()->getVersion()).'
Memory Limit'.ini_get('memory_limit').'