]> git.mxchange.org Git - friendica-addons.git/commitdiff
Rendertime: possibility to define a minimal value for displaying the execution times
authorMichael <heluecht@pirati.ca>
Fri, 20 Nov 2020 09:02:39 +0000 (09:02 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 20 Nov 2020 09:02:39 +0000 (09:02 +0000)
rendertime/rendertime.php

index acc6521a5468c20c1fd9a5c08d1369e40a6f3f22..9edfde0b8a50846ae5d4b7979834b15052641b2b 100644 (file)
@@ -50,7 +50,7 @@ function rendertime_page_end(Friendica\App $a, &$o)
 
                if ($profiler->isRendertime()) {
                        $o .= '<pre>';
-                       $o .= $profiler->getRendertimeString();
+                       $o .= $profiler->getRendertimeString(DI::config()->get('rendertime', 'minimal_time', 0));
                        $o .= '</pre>';
                }
        }