mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 11:16:21 +00:00
Merge branch 'blazer' into panel.sutty.nl
This commit is contained in:
commit
b52f36242e
1 changed files with 3 additions and 1 deletions
|
@ -36,8 +36,10 @@ class UriCollectionJob < PeriodicJob
|
|||
# Reducir las estadísticas calculadas aplicando un rollup sobre el
|
||||
# intervalo más amplio.
|
||||
Stat::INTERVALS.reduce do |previous, current|
|
||||
beginning_of_this_interval = beginning_of_interval.try(:"beginning_of_#{current}")
|
||||
|
||||
Rollup.where(name: 'host|uri', interval: previous)
|
||||
.where('time >= ?', beginning_of_interval)
|
||||
.where('time >= ?', beginning_of_this_interval)
|
||||
.where_dimensions(host: hostname, uri: uri)
|
||||
.group("dimensions->'host'", "dimensions->'uri'")
|
||||
.rollup('host|uri', interval: current, update: true) do |rollup|
|
||||
|
|
Loading…
Reference in a new issue