module NewRelic::Processor class EpochCounter@last_time ret=(val-@last_value)/(curr_time-@last_time).to_f end @last_value=val @last_time=curr_time # This next line is to avoid large negative spikes during epoch reset events... return nil if ret.nil? or ret<0 ret end #Component::Setup.install_processor EpochCounter end end