Perfdata.measure: copy and paste error removed.
This commit is contained in:
parent
541cb69a92
commit
eff34860cf
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue