Ticket #1369: piwik.patch
| File piwik.patch, 1.1 KB (added by JulienM, 2 years ago) |
|---|
-
core/Tracker/Generator/Tracker.php
43 43 protected function getNewVisitObject() 44 44 { 45 45 $visit = new Piwik_Tracker_Generator_Visit(); 46 $visit->generateTimestamp(); 46 47 return $visit; 47 48 } 48 49 -
core/Tracker/Generator/Visit.php
32 32 33 33 protected function getCurrentTimestamp() 34 34 { 35 self::$timestampToUse = max(@$this->visitorInfo['visit_last_action_time'],self::$timestampToUse);36 self::$timestampToUse += mt_rand(4,1840);37 35 return self::$timestampToUse; 38 36 } 39 37 38 public function generateTimestamp() 39 { 40 self::$timestampToUse = max(@$this->visitorInfo['visit_last_action_time'],self::$timestampToUse); 41 self::$timestampToUse += mt_rand(4,1840); 42 } 43 40 44 protected function updateCookie() 41 45 { 42 46 @parent::updateCookie();
