statsd 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/statsd/mongo.rb CHANGED
@@ -110,7 +110,7 @@ module Statsd
110
110
  when 'timer'
111
111
  mean = stats.collect {|stat| stat['values']['mean'] }.inject( 0 ) { |s,x| s+x } / stats.count
112
112
  max = stats.collect {|stat| stat['values']['max'] }.max
113
- min = stats.collect {|stat| stat['values']['max'] }.min
113
+ min = stats.collect {|stat| stat['values']['min'] }.min
114
114
  upper_key = stats.first['values'].keys.find{|k| k =~ /upper_/}
115
115
  max_at_threshold = stats.collect {|stat| stat['values'][upper_key] }.max
116
116
  total_stats = stats.collect {|stat| stat['values']['count'] }.inject( 0 ) { |s,x| s+x }
data/lib/statsd/server.rb CHANGED
@@ -3,7 +3,7 @@ require 'yaml'
3
3
  require 'erb'
4
4
  module Statsd
5
5
  module Server #< EM::Connection
6
- Version = '0.5.2'
6
+ Version = '0.5.3'
7
7
 
8
8
  FLUSH_INTERVAL = 10
9
9
  COUNTERS = {}
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: statsd
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.2
5
+ version: 0.5.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Andrew Coldham
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2011-05-15 00:00:00 -07:00
14
+ date: 2011-05-16 00:00:00 -07:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency