Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Added support for floating-point value rate monitoring #6

Merged
merged 1 commit into from

2 participants

@artemip

No description provided.

@wkm wkm merged commit 6a61948 into tumblr:master
@wkm

Nice! Thank you!

@artemip

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 10, 2012
  1. @artemip
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +1 −1  lib/ostrichpoll.rb
  2. +2 −2 lib/ostrichpoll/ostrich_validator.rb
View
2  lib/ostrichpoll.rb
@@ -74,4 +74,4 @@ module OstrichPoll
exit EXIT_ERROR # exit with error
end
-exit OstrichPoll::EXIT_OK
+exit OstrichPoll::EXIT_OK
View
4 lib/ostrichpoll/ostrich_validator.rb
@@ -109,8 +109,8 @@ def verify!
def check (value)
Log.debug "#{host_instance.url} | Given: #{metric}=#{value}"
- if !value.is_a? Integer
- value = Integer(value) rescue nil
+ if !value.is_a? Float
+ value = Float(value) rescue nil
end
# error on missing value unless we ignore missing
Something went wrong with that request. Please try again.