# File lib/visage-app/collectd/json.rb, line 41
  def mean
    if size > 0
      sum / size
    else
      nil
    end
  end