statsd-instrument 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -129,7 +129,7 @@ module StatsD
129
129
 
130
130
  def self.write(k,v,op, sample_rate = default_sample_rate)
131
131
  return unless enabled
132
- return if sample_rate < 1 && rand < sample_rate
132
+ return if sample_rate < 1 && rand > sample_rate
133
133
 
134
134
  command = "#{self.prefix + '.' if self.prefix}#{k}:#{v}"
135
135
  case op
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "statsd-instrument"
3
- s.version = '1.3.2'
3
+ s.version = '1.3.3'
4
4
  s.authors = ["Jesse Storimer", "Tobias Lutke"]
5
5
  s.email = ["jesse@shopify.com"]
6
6
  s.homepage = "http://github.com/shopify/statsd-instrument"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: statsd-instrument
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-09-04 00:00:00.000000000 Z
13
+ date: 2012-09-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mocha