lib/pulse_meter/sensor/timeline_reduce.rb
# Reduces data in all raw intervals
Reduces data in all raw intervals
Reduces data in all raw intervals
def reduce_all_raw
        time = time_to_redis(Time.now)
        min_time = time - reduce_delay  - interval
        max_depth = time - reduce_delay - interval * MAX_INTERVALS
        ids = collect_ids_to_reduce(time, max_depth, min_time)
        ids.reverse.each {|id| reduce(id)}
      end
def reduce_all_raw time = time_to_redis ( Time . now ) min_time = time - reduce_delay - interval max_depth = time - reduce_delay - interval * MAX_INTERVALS ids = collect_ids_to_reduce ( time , max_depth , min_time ) ids . reverse . each { | id | reduce ( id ) } end
Reduces data in all raw intervals
Reduces data in all raw intervals