Skip to content

Commit

Permalink
Removing trailing whitespace from Java example client.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Spitz committed Aug 3, 2012
1 parent 7d7a312 commit e285d3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/StatsdClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* (C) 2011 Meetup, Inc.
* Author: Andrew Gwozdziewycz <andrew@meetup.com>, @apgwoz
*
*
*
*
* Example usage:
*
Expand All @@ -22,7 +22,7 @@
* // multiple keys with a sample rate
* client.increment(10, .1, "foo.bar.baz", "foo.bar.boo", "foo.baz.bar");
*
* Note: For best results, and greater availability, you'll probably want to
* Note: For best results, and greater availability, you'll probably want to
* create a wrapper class which creates a static client and proxies to it.
*
* You know... the "Java way."
Expand Down Expand Up @@ -114,7 +114,7 @@ public boolean increment(int magnitude, double sampleRate, String... keys) {
public boolean gauge(String key, double magnitude){
return gauge(key, magnitude, 1.0);
}

public boolean gauge(String key, double magnitude, double sampleRate){
final String stat = String.format(Locale.ENGLISH, "%s:%s|g", key, magnitude);
return send(sampleRate, stat);
Expand Down

0 comments on commit e285d3a

Please sign in to comment.