Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Added support for floating-point value rate monitoring #6

Merged
merged 1 commit into from

2 participants

Artem Pasyechnyk Wiktor Macura
Artem Pasyechnyk

No description provided.

Wiktor Macura wkm merged commit 6a61948 into from
Wiktor Macura

Nice! Thank you!

Artem Pasyechnyk

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. Artem Pasyechnyk
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
2  lib/ostrichpoll.rb
View
@@ -74,4 +74,4 @@ module OstrichPoll
exit EXIT_ERROR # exit with error
end
-exit OstrichPoll::EXIT_OK
+exit OstrichPoll::EXIT_OK
4 lib/ostrichpoll/ostrich_validator.rb
View
@@ -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.