test/performance/lib/performance/result.rb in newrelic_rpm-3.9.4.245 vs test/performance/lib/performance/result.rb in newrelic_rpm-3.9.5.251
- old
+ new
@@ -73,10 +73,12 @@
end
def self.from_hash(hash)
elapsed = hash['measurements'].delete('elapsed')
result = self.new(hash['suite'], hash['name'])
- result.measurements.merge! hash['measurements']
+ hash['measurements'].each do |key, value|
+ result.measurements[key.to_sym] = value
+ end
result.tags.merge! hash['tags']
result.exception = hash['exception']
result.elapsed = elapsed
result.timer.start_timestamp = Time.iso8601(hash['started_at']) if hash['started_at']
result.timer.stop_timestamp = Time.iso8601(hash['finished_at']) if hash['finished_at']