Perfdata.measure: copy and paste error removed.

This commit is contained in:
Denis Knauf 2013-04-10 15:29:42 +02:00
parent 541cb69a92
commit eff34860cf

View file

@ -12,9 +12,8 @@ module NSCA
end end
def measure &block def measure &block
timeout ||= 0
exception = Class.new Timeout::Error exception = Class.new Timeout::Error
timeout = pd.max timeout = max
m = realtime do m = realtime do
begin begin
timeout timeout, exception, &block timeout timeout, exception, &block