ruby-win32/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel/stats.rb
def sample(s)
      @sum += s
      @sumsq += s * s
      if @n == 0
        @min = @max = s
      else
        @min = s if @min > s
        @max = s if @max < s
      end
      @n+=1
    end
# Adds a sampling to the calculations.
Adds a sampling to the calculations.
Adds a sampling to the calculations .
def sample(s)
      @sum += s
      @sumsq += s * s
      if @n == 0
        @min = @max = s
      else
        @min = s if @min > s
        @max = s if @max < s
      end
      @n+=1
    end
def sample ( s ) @sum += s @sumsq += s * s if @n == 0 @min = @max = s else @min = s if @min > s @max = s if @max < s end @n += 1 end
Adds a sampling to the calculations.
Adds a sampling to the calculations .
s