Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
quasor committed May 16, 2011
1 parent 0039d6d commit a918f1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/statsd/mongo.rb
Expand Up @@ -110,7 +110,7 @@ def self.aggregate(current_bucket)
when 'timer'
mean = stats.collect {|stat| stat['values']['mean'] }.inject( 0 ) { |s,x| s+x } / stats.count
max = stats.collect {|stat| stat['values']['max'] }.max
min = stats.collect {|stat| stat['values']['max'] }.min
min = stats.collect {|stat| stat['values']['min'] }.min
upper_key = stats.first['values'].keys.find{|k| k =~ /upper_/}
max_at_threshold = stats.collect {|stat| stat['values'][upper_key] }.max
total_stats = stats.collect {|stat| stat['values']['count'] }.inject( 0 ) { |s,x| s+x }
Expand Down

0 comments on commit a918f1d

Please sign in to comment.