Parent

Class/Module Index [+]

Quicksearch

MCollective::Aggregate::Sum

Public Instance Methods

process_result(value, reply) click to toggle source

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
startup_hook() click to toggle source
# 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.