ruboyuta
This commit is contained in:
parent
356db85465
commit
aa86ead112
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue