Skip to content

Commit

Permalink
Fix some whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
reinh committed Feb 20, 2011
1 parent 1a2acbd commit d85787d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/statsd.rb
Expand Up @@ -17,21 +17,21 @@ def initialize(host, port)

# @param [String] stat stat name
# @param [Integer] sample_rate sample rate, 1 for always
def increment(stat, sample_rate=1); count stat, 1, sample_rate end
def increment(stat, sample_rate=1); count stat, 1, sample_rate end

# @param [String] stat stat name
# @param [Integer] sample_rate sample rate, 1 for always
def decrement(stat, sample_rate=1); count stat, -1, sample_rate end
def decrement(stat, sample_rate=1); count stat, -1, sample_rate end

# @param [String] stat stat name
# @param [Integer] count count
# @param [Integer] sample_rate sample rate, 1 for always
def count( stat, count, sample_rate=1); send stat, count, 'c', sample_rate end
def count(stat, count, sample_rate=1); send stat, count, 'c', sample_rate end

# @param [String] stat stat name
# @param [Integer] ms timing in milliseconds
# @param [Integer] sample_rate sample rate, 1 for always
def timing(stat, ms, sample_rate=1); send stat, ms, 'ms', sample_rate end
def timing(stat, ms, sample_rate=1); send stat, ms, 'ms', sample_rate end

private

Expand Down
2 changes: 1 addition & 1 deletion spec/statsd_spec.rb
Expand Up @@ -32,7 +32,7 @@ def socket; @socket ||= FakeUDPSocket.new end
@statsd.increment('foobar', 0.5)
@statsd.socket.recv.must_equal ['foobar:1|c|@0.5']
end
end
end
end

describe "#decrement" do
Expand Down

0 comments on commit d85787d

Please sign in to comment.