lib/tabs/metrics/value.rb in tabs-0.8.2 vs lib/tabs/metrics/value.rb in tabs-0.9.0

- old
+ new

@@ -10,10 +10,10 @@ @key = key end def record(value, timestamp=Time.now) timestamp.utc - Tabs::RESOLUTIONS.each do |resolution| + Tabs::Resolution.all.each do |resolution| formatted_time = Tabs::Resolution.serialize(resolution, timestamp) stat_key = "stat:value:#{key}:data:#{formatted_time}" update_values(stat_key, value) end true