Permalink
Browse files

Revert "Use String#prepend instead of interpolation"

This reverts commit aa27bec.
  • Loading branch information...
jstorimer committed Mar 20, 2012
1 parent aa27bec commit 3b11579c6ada568359be674da899fd8bdf855c7a
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/statsd/instrument.rb
View
@@ -124,8 +124,7 @@ def self.write(k,v,op, sample_rate = default_sample_rate)
return unless enabled
return if sample_rate < 1 && rand > sample_rate
- command = "#{k}:#{v}"
- command.prepend("#{prefix}.") if prefix
+ command = "#{self.prefix + '.' if self.prefix}#{k}:#{v}"
case op
when :incr
command << '|c'

0 comments on commit 3b11579

Please sign in to comment.