Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Metric values should be float in order to handle percentage values

  • Loading branch information...
commit 7362a4001f69f19a058be48263623b37914e7c1b 1 parent 09dd828
@DTrierweiler DTrierweiler authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/gattica/data_point.rb
View
2  lib/gattica/data_point.rb
@@ -20,7 +20,7 @@ def initialize(xml)
{ dimension.attributes['name'].split(':').last.to_sym => dimension.attributes['value'].split(':').last }
end
@metrics = xml.search('dxp:metric').collect do |metric|
- { metric.attributes['name'].split(':').last.to_sym => metric.attributes['value'].split(':').last.to_i }
+ { metric.attributes['name'].split(':').last.to_sym => metric.attributes['value'].split(':').last.to_f }
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.