Permalink
Browse files

Fix sampling

  • Loading branch information...
1 parent d6cdcfc commit d0a6b62058baa510eea58c307c0667db792008dc @tobi tobi committed Sep 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/statsd/instrument.rb
View
@@ -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 d0a6b62

Please sign in to comment.