Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2013-09-14 07:23:23 +0400
committermattab <matthieu.aubry@gmail.com>2013-09-14 07:23:23 +0400
commite3bd0c0b9e8bd34efd27d31fe310602fcfc3a894 (patch)
tree9e8873a2410dedb65b3e725bf537d4781047b7b7 /core/Timer.php
parent8d11a25fa7f41212584a58998c59884a4b9836d4 (diff)
Moving piwik settings specific getters to SettingsPiwik class
Adding MetricsFormatter class which knows how to format/display metrics (time, money, size, etc)
Diffstat (limited to 'core/Timer.php')
-rw-r--r--core/Timer.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/Timer.php b/core/Timer.php
index c1d17a8020..cddb7cb93f 100644
--- a/core/Timer.php
+++ b/core/Timer.php
@@ -10,8 +10,6 @@
*/
namespace Piwik;
-use Piwik\Piwik;
-
/**
*
* @package Piwik
@@ -61,7 +59,7 @@ class Timer
*/
public function getMemoryLeak()
{
- return "Memory delta: " . Piwik::getPrettySizeFromBytes($this->getMemoryUsage() - $this->memoryStart);
+ return "Memory delta: " . MetricsFormatter::getPrettySizeFromBytes($this->getMemoryUsage() - $this->memoryStart);
}
/**