Fix bucket name truncation in the bucket log, and don't forget to check the delta interval when summarizing.
This commit is contained in:
parent
9ef8f098cf
commit
b6c4adc8e0
4 changed files with 18 additions and 1 deletions
|
|
@ -113,7 +113,9 @@ sub execute {
|
|||
$recordLast->execute([ (@{ $logLine }{qw/userId sessionId timeStamp url/}) ]);
|
||||
if ($lastLine->{timeStamp}) {
|
||||
my $delta = $logLine->{timeStamp} - $lastLine->{timeStamp};
|
||||
$deltaLog->execute([ (@{ $lastLine }{qw/userId assetId timeStamp url/}), $delta]);
|
||||
if ($delta <= $deltaInterval) {
|
||||
$deltaLog->execute([ (@{ $lastLine }{qw/userId assetId timeStamp url/}), $delta]);
|
||||
}
|
||||
}
|
||||
if (time() > $endTime) {
|
||||
$expired = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue