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:
Diffstat (limited to 'core/Timer.php')
-rw-r--r--core/Timer.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/Timer.php b/core/Timer.php
index 07c2adbd01..f25ef16d9e 100644
--- a/core/Timer.php
+++ b/core/Timer.php
@@ -57,6 +57,10 @@ class Piwik_Timer
private function getMemoryUsage()
{
- return memory_get_usage();
+ if(function_exists('memory_get_usage'))
+ {
+ return memory_get_usage();
+ }
+ return 0;
}
}