From e9395d6a79936175fc623df7048c4d0169461b4b Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Sat, 23 Jun 2012 00:38:58 -0400 Subject: [PATCH] loop: max loops was sometimes not set --- plugins/check_loop | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/check_loop b/plugins/check_loop index 5ffa608..634c126 100644 --- a/plugins/check_loop +++ b/plugins/check_loop @@ -35,6 +35,7 @@ sub init { if ( $self->{_max_hops} !~ /^\d+$/ ) { $self->log(LOGWARN, "Invalid max_hops value -- using default"); + $self->{_max_hops} = 100; } $self->log(LOGWARN, "Ignoring additional arguments") if @args > 1; }