Skip to content
Browse files

Don't send metrics if they are blank!

  • Loading branch information...
1 parent 4b30ac9 commit ae614baf7cfdfabbbae738639c0cbec62760cb5b @dhruvbansal dhruvbansal committed Sep 10, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/graphiterb/sender.rb
View
1 lib/graphiterb/sender.rb
@@ -34,6 +34,7 @@ def timestamp
end
def send *metrics
+ return if metrics.blank?
now = timestamp
safely do
message = metrics.map{|metric, val, ts| [metric, val, (ts||now)].join(" ") }.join("\n")+"\n"

0 comments on commit ae614ba

Please sign in to comment.
Something went wrong with that request. Please try again.