summaryrefslogtreecommitdiffstats
path: root/lib/Smokeping/probes
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Smokeping/probes')
-rw-r--r--lib/Smokeping/probes/base.pm1
1 files changed, 1 insertions, 0 deletions
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};
}