Skip to content

Commit

Permalink
Fix problem with metric parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Kayser committed Jun 12, 2009
1 parent 733f71d commit f0d53b8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/new_relic/metric_parser.rb
Expand Up @@ -29,8 +29,7 @@ def self.for_metric_named(s)
category = (s =~ /^([^\/]*)/) && $1
parser_class = self
if category
category_class = category.camelize
parser_class = NewRelic::MetricParser.const_get(category_class) if (NewRelic::MetricParser.const_defined?(category_class) rescue nil)
parser_class = NewRelic::MetricParser.const_get(category) if (NewRelic::MetricParser.const_defined?(category) rescue nil)
end
parser_class.new s
end
Expand Down

0 comments on commit f0d53b8

Please sign in to comment.