diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2007-08-13 11:49:27 +0200 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2007-08-13 11:49:27 +0200 |
commit | c98e512bc9dd3f93eed5cad53476cc8b4fd803fd (patch) | |
tree | 2f0c01d7fdfc829a06d11c9e12b53f6920ff3cc8 /lib/Smokeping/Slave.pm | |
parent | 546c89ee565a0cd905053f5e7edb6d50655a486f (diff) | |
download | smokeping-c98e512bc9dd3f93eed5cad53476cc8b4fd803fd.tar.gz smokeping-c98e512bc9dd3f93eed5cad53476cc8b4fd803fd.tar.xz |
master slave code drop to start debugging
Diffstat (limited to 'lib/Smokeping/Slave.pm')
-rw-r--r-- | lib/Smokeping/Slave.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Smokeping/Slave.pm b/lib/Smokeping/Slave.pm index c5aa3d3..a80eae3 100644 --- a/lib/Smokeping/Slave.pm +++ b/lib/Smokeping/Slave.pm @@ -38,6 +38,7 @@ sub get_results { my $justthisprobe = shift; # if defined, update only the targets probed by this probe my $probe = $tree->{probe}; my $results = []; + return [] unless $cfg; foreach my $prop (keys %{$tree}) { if (ref $tree->{$prop} eq 'HASH'){ my $subres = get_results $slave_cfg, $cfg, $probes, $tree->{$prop}, $name."/$prop", $justthisprobe; |