Skip to content

Commit

Permalink
Revert "Use String#prepend instead of interpolation"
Browse files Browse the repository at this point in the history
This reverts commit aa27bec.
  • Loading branch information
jstorimer committed Mar 20, 2012
1 parent aa27bec commit 3b11579
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/statsd/instrument.rb
Expand Up @@ -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'
Expand Down

0 comments on commit 3b11579

Please sign in to comment.