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 'plugins/Live/VisitorProfile.php')
-rw-r--r--plugins/Live/VisitorProfile.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Live/VisitorProfile.php b/plugins/Live/VisitorProfile.php
index b92ead75e6..181c8bb302 100644
--- a/plugins/Live/VisitorProfile.php
+++ b/plugins/Live/VisitorProfile.php
@@ -355,14 +355,14 @@ class VisitorProfile
{
if ($this->profile['totalPageViewsWithTiming']) {
$this->profile['averagePageGenerationTime'] =
- round($this->pageGenerationTimeTotal / $this->profile['totalPageViewsWithTiming'], $precision = 2);
+ round($this->pageGenerationTimeTotal / (1000 * $this->profile['totalPageViewsWithTiming']), $precision = 3);
}
}
private function handleIfPageGenerationTime($action)
{
- if (isset($action['generationTime'])) {
- $this->pageGenerationTimeTotal += $action['generationTime'];
+ if (isset($action['generationTimeMilliseconds'])) {
+ $this->pageGenerationTimeTotal += $action['generationTimeMilliseconds'];
++$this->profile['totalPageViewsWithTiming'];
}
}