diff --git a/lib/nsca/check.rb b/lib/nsca/check.rb index 67aa3bc..3aaeb72 100644 --- a/lib/nsca/check.rb +++ b/lib/nsca/check.rb @@ -12,9 +12,8 @@ module NSCA end def measure &block - timeout ||= 0 exception = Class.new Timeout::Error - timeout = pd.max + timeout = max m = realtime do begin timeout timeout, exception, &block