diff --git a/lib/redistat/summary.rb b/lib/redistat/summary.rb index c32bb6c..b9fbb5c 100644 --- a/lib/redistat/summary.rb +++ b/lib/redistat/summary.rb @@ -18,10 +18,10 @@ module Redistat if options[:enable_grouping] stats = inject_group_summaries(stats) - key.groups.each { |k| + key.groups.each do |k| update_key(k, stats, depth_limit, options[:connection_ref]) k.update_index if options[:label_indexing] - } + end else update_key(key, stats, depth_limit, options[:connection_ref]) end