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:
authormattpiwik <matthieu.aubry@gmail.com>2009-03-22 23:14:11 +0300
committermattpiwik <matthieu.aubry@gmail.com>2009-03-22 23:14:11 +0300
commit592afffa35473992a585997c63dea72ea8f85548 (patch)
tree60e875d3792ccab22d1e741633730e0a32fc2d32 /core/Timer.php
parent5dbb6d30c41c0e40f1bc9850de430ba51a58b886 (diff)
- fixed Fatal error: Call to undefined function memory_get_usage()
git-svn-id: http://dev.piwik.org/svn/trunk@996 59fd770c-687e-43c8-a1e3-f5a4ff64c105
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;
}
}