From 2206afb0d6aaf857ecf739ae0b639bf215106294 Mon Sep 17 00:00:00 2001 From: Niko Tyni Date: Fri, 18 Feb 2005 20:55:29 +0000 Subject: * complain if pings < 3 * show the smoke for pings == 3 too, not only if >3 --- lib/Smokeping/probes/base.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/Smokeping/probes/base.pm') diff --git a/lib/Smokeping/probes/base.pm b/lib/Smokeping/probes/base.pm index dab2979..8cc4def 100644 --- a/lib/Smokeping/probes/base.pm +++ b/lib/Smokeping/probes/base.pm @@ -279,6 +279,12 @@ DOC }, pings => { _re => '\d+', + _sub => sub { + my $val = shift; + return "ERROR: The pings value must be at least 3." + if $val < 3; + return undef; + }, _example => 20, _doc => <