Skip to content

Commit

Permalink
Merge pull request #3 from benmur/master
Browse files Browse the repository at this point in the history
Fix a NoMethodError on Fixnum metrics
  • Loading branch information
aphyr committed Jan 2, 2013
2 parents 6d61b76 + d92d4dd commit 7850eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/riemann/dash/helper/renderer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def state_chart(states, opts = {})
end.merge o[:maxima]
else
states.inject(Hash.new(0)) do |m, s|
if s.metric && !(s.metric.nan?)
if s.metric && !(s.metric.respond_to?(:nan?) && s.metric.nan?)
m[s.service] = [s.metric, m[s.service]].max
end
m
Expand Down

0 comments on commit 7850eb6

Please sign in to comment.