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:
authorBenaka Moorthi <benaka.moorthi@gmail.com>2013-09-26 07:04:30 +0400
committerBenaka Moorthi <benaka.moorthi@gmail.com>2013-09-26 07:04:30 +0400
commit94fd68f5d6b30a1ed36448432db5e0335a695ff3 (patch)
treec6b1706d29524b2a80784fcb79b54e2e047c068e /plugins/Live
parent3f622e8f26895a8983fcebeb8d1a70852df75624 (diff)
Refs #3089, fixing more bugs in visitor profile.
Diffstat (limited to 'plugins/Live')
-rw-r--r--plugins/Live/API.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Live/API.php b/plugins/Live/API.php
index 54fc50b8ef..0b61f7bcce 100644
--- a/plugins/Live/API.php
+++ b/plugins/Live/API.php
@@ -259,7 +259,7 @@ class API
$keyword = $action['siteSearchKeyword'];
if (!isset($siteSearchKeywords[$keyword])) {
- $siteSearchKeyword[$keyword] = 0;
+ $siteSearchKeywords[$keyword] = 0;
++$result['totalSearches'];
}
++$siteSearchKeywords[$keyword];
@@ -308,7 +308,8 @@ class API
}
if ($result['totalPageViews']) {
- $result['averagePageGenerationTime'] = $pageGenerationTimeTotal / $result['totalPageViews'];
+ $result['averagePageGenerationTime'] =
+ round($pageGenerationTimeTotal / $result['totalPageViews'], $precision = 2);
}
$result['totalVisitDurationPretty'] = \Piwik\MetricsFormatter::getPrettyTimeFromSeconds($result['totalVisitDuration']);