]> git.mxchange.org Git - friendica-addons.git/blobdiff - rendertime/rendertime.php
Merge pull request #239 from annando/master
[friendica-addons.git] / rendertime / rendertime.php
index e2c7352c39d3debd0b63a25c36e9675fbfc28319..213ed316aa479d22b340ee889206071d4a4d9a34 100755 (executable)
@@ -26,7 +26,8 @@ function rendertime_page_end(&$a, &$o) {
 
        $duration = microtime(true)-$a->performance["start"];
 
-       $o = $o.'<div class="renderinfo">'.sprintf(t("Performance: Database: %s, Network: %s, Rendering: %s, Parser: %s, I/O: %s, Other: %s"),
+       if (is_site_admin())
+               $o = $o.'<div class="renderinfo">'.sprintf(t("Performance: Database: %s, Network: %s, Rendering: %s, Parser: %s, I/O: %s, Other: %s, Total: %s"),
                                                round($a->performance["database"], 3),
                                                round($a->performance["network"], 3),
                                                round($a->performance["rendering"], 3),
@@ -34,5 +35,10 @@ function rendertime_page_end(&$a, &$o) {
                                                round($a->performance["file"], 3),
                                                round($duration - $a->performance["database"] - $a->performance["network"]
                                                         - $a->performance["rendering"] - $a->performance["parser"]
-                                                        - $a->performance["file"], 3))."</div>";
+                                                        - $a->performance["file"], 3),
+                                               round($duration, 3)
+                                               //round($a->performance["markstart"], 3)
+                                               //round($a->performance["plugin"], 3)
+                                               )."</div>";
+
 }