Skip to content

Commit

Permalink
fix month aggregations over endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
matyaskopp committed Sep 16, 2022
1 parent 0c49282 commit 0bfb97f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/log2sql.pl
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,12 @@
log_aggr la
ON
ue.endpoint_id = la.endpoint_id
AND li.service_id = la.service_id
AND (li.service_id = la.service_id OR (li.service_id IS NULL AND la.service_id IS NULL))
AND la.period_start_date >= li.period_start_date
AND la.period_end_date <= li.period_end_date
AND la.token_id IS NULL
WHERE
la.period_start_date >= '$first_datetime'
li.period_end_date >= '$first_datetime'
AND li.period_level = 'month'
AND la.period_level = 'day'
GROUP BY
Expand Down

0 comments on commit 0bfb97f

Please sign in to comment.