Determines the average of a set of numerical values
# File lib/mcollective/aggregate/sum.rb, line 13 def process_result(value, reply) @result[:value] += value end
# File lib/mcollective/aggregate/sum.rb, line 4 def startup_hook @result[:value] = 0 @result[:type] = :numeric # Set default aggregate_function if it is undefined @aggregate_format = "Sum of #{@result[:output]}: %f" unless @aggregate_format end