5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 16:21:41 +00:00
This commit is contained in:
f 2021-10-09 18:29:53 -03:00
parent 356db85465
commit aa86ead112

View file

@ -63,7 +63,7 @@ class StatsController < ApplicationController
options = { host: hostnames, uri: normalized_paths }
stats = Rollup.where_dimensions(**options).multi_series('host|uri', interval: interval).tap do |series|
series.each do |serie|
serie[:name] = serie.dig(:dimensions).slice('host', 'uri').values.join.sub('/index.html', '/')
serie[:name] = serie[:dimensions].slice('host', 'uri').values.join.sub('/index.html', '/')
serie[:data].transform_values! do |value|
value * nodes
end