diff options
author | Niko Tyni <ntyni@iki.fi> | 2008-03-27 21:54:09 +0100 |
---|---|---|
committer | Niko Tyni <ntyni@iki.fi> | 2008-03-27 21:54:09 +0100 |
commit | 8dac72c2ba0a24a27886c7f4544cf01f7efd14d8 (patch) | |
tree | b0206effcefe145118ec77eff83692bdb509a771 /lib/Smokeping/probes | |
parent | 01c57c9c97359fd531896c10baff94c2010dd609 (diff) | |
download | smokeping-8dac72c2ba0a24a27886c7f4544cf01f7efd14d8.tar.gz smokeping-8dac72c2ba0a24a27886c7f4544cf01f7efd14d8.tar.xz |
properly initialize the target count
Diffstat (limited to 'lib/Smokeping/probes')
-rw-r--r-- | lib/Smokeping/probes/base.pm | 1 |
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}; } |