perfdata_for: perfdata_label -> label

This commit is contained in:
Denis Knauf 2013-04-09 21:13:05 +02:00
parent 21031daf8e
commit d676b83138

View file

@ -100,8 +100,8 @@ module NSCA
if label.is_a? PerformanceData::Base if label.is_a? PerformanceData::Base
label label
else else
perfdata_label = perfdata_label.to_sym label = label.to_sym
self.class.perfdatas[perfdata_label] || PerformanceData::Base.new( perfdata_label) self.class.perfdatas[label] || PerformanceData::Base.new( label)
end end
end end