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 }
|
options = { host: hostnames, uri: normalized_paths }
|
||||||
stats = Rollup.where_dimensions(**options).multi_series('host|uri', interval: interval).tap do |series|
|
stats = Rollup.where_dimensions(**options).multi_series('host|uri', interval: interval).tap do |series|
|
||||||
series.each do |serie|
|
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|
|
serie[:data].transform_values! do |value|
|
||||||
value * nodes
|
value * nodes
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue