From eff34860cf815c3877b3a5dfaa48b81a4a549f74 Mon Sep 17 00:00:00 2001 From: Denis Knauf Date: Wed, 10 Apr 2013 15:29:42 +0200 Subject: [PATCH] Perfdata.measure: copy and paste error removed. --- lib/nsca/check.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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