diff options
Diffstat (limited to 'plugins/VisitorInterest/VisitorDetails.php')
-rw-r--r-- | plugins/VisitorInterest/VisitorDetails.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/VisitorInterest/VisitorDetails.php b/plugins/VisitorInterest/VisitorDetails.php index 62f0b99f3e..688e0e47a3 100644 --- a/plugins/VisitorInterest/VisitorDetails.php +++ b/plugins/VisitorInterest/VisitorDetails.php @@ -1,8 +1,8 @@ <?php /** - * Piwik - free/libre analytics platform + * Matomo - free/libre analytics platform * - * @link http://piwik.org + * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * */ @@ -14,6 +14,7 @@ class VisitorDetails extends VisitorDetailsAbstract { public function extendVisitorDetails(&$visitor) { - $visitor['daysSinceLastVisit'] = $this->details['visitor_days_since_last']; + $visitor['daysSinceLastVisit'] = floor($this->details['visitor_seconds_since_last'] / 86400); + $visitor['secondsSinceLastVisit'] = $this->details['visitor_seconds_since_last']; } }
\ No newline at end of file |