Skip to content
Browse files

Revert "Fix sampling". Closes #18.

This reverts commit d0a6b62.
  • Loading branch information...
1 parent 4151254 commit 2da57bc7e9a6b1bab92a7c41f8feaf823479276b @jstorimer jstorimer committed Sep 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/statsd/instrument.rb
View
2 lib/statsd/instrument.rb
@@ -129,7 +129,7 @@ def self.socket
def self.write(k,v,op, sample_rate = default_sample_rate)
return unless enabled
- return if sample_rate < 1 && rand < sample_rate
+ return if sample_rate < 1 && rand > sample_rate
command = "#{self.prefix + '.' if self.prefix}#{k}:#{v}"
case op

0 comments on commit 2da57bc

Please sign in to comment.
Something went wrong with that request. Please try again.