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