From 8dac72c2ba0a24a27886c7f4544cf01f7efd14d8 Mon Sep 17 00:00:00 2001 From: Niko Tyni Date: Thu, 27 Mar 2008 20:54:09 +0000 Subject: properly initialize the target count --- lib/Smokeping/probes/base.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Smokeping/probes/base.pm b/lib/Smokeping/probes/base.pm index cdcad66..b2e4e22 100644 --- a/lib/Smokeping/probes/base.pm +++ b/lib/Smokeping/probes/base.pm @@ -283,6 +283,7 @@ sub _pings { sub target_count { my $self = shift; + $self->{target_count} = 0 if !defined $self->{target_count}; return $self->{target_count}; } -- cgit v1.2.3-24-g4f1b