]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/Profiler.php
Quickfix to avoid bad looking incoming tweets
[friendica.git] / src / Util / Profiler.php
index a60601098d450ff4f6a043be9bc6f34861cdfdb2..3e1a900ad56ab65dd3632f44f12c61428957b6a9 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -134,7 +134,8 @@ class Profiler implements ContainerInterface
        public function resetPerformance()
        {
                $this->performance = [];
-               $this->performance['start'] = $this->performance['ready'] = microtime(true);
+               $this->performance['start'] = microtime(true);
+               $this->performance['ready'] = 0;
                $this->performance['database'] = 0;
                $this->performance['database_write'] = 0;
                $this->performance['cache'] = 0;
@@ -145,7 +146,8 @@ class Profiler implements ContainerInterface
                $this->performance['parser'] = 0;
                $this->performance['marktime'] = 0;
                $this->performance['marktime'] = microtime(true);
-               $this->performance['frontend'] = 0;
+               $this->performance['classcreate'] = 0;
+               $this->performance['classinit'] = 0;
                $this->performance['init'] = 0;
                $this->performance['content'] = 0;
        }