lib/barometer/base.rb in attack-barometer-0.5.0 vs lib/barometer/base.rb in attack-barometer-0.6.0

- old
+ new

@@ -20,19 +20,22 @@ # iterate through all the configured sources and # collect weather data for each one # def measure(metric=nil) return nil unless @query + @weather.start_at = Time.now.utc level = 1 until self.success? if sources = @@config[level] _dig(sources, nil, metric) else raise OutOfSources end level += 1 end + + @weather.end_at = Time.now.utc @weather end def success?; @success; end \ No newline at end of file