diff options
Diffstat (limited to 'plugins/Live/VisitorProfile.php')
-rw-r--r-- | plugins/Live/VisitorProfile.php | 6 |
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']; } } |