Method: NewRelic::Agent::SystemInfo.remove_bad_values
- Defined in:
- lib/new_relic/agent/system_info.rb
permalink .remove_bad_values ⇒ Object
108 109 110 111 112 113 114 115 116 |
# File 'lib/new_relic/agent/system_info.rb', line 108 def self.remove_bad_values # give nils for obviously wrong values @processor_info.keys.each do |key| value = @processor_info[key] if value.is_a?(Numeric) && value <= 0 @processor_info[key] = nil end end end |