From f0b493945725fef85bfe2dc110ad37388e36aa58 Mon Sep 17 00:00:00 2001 From: Tobi Oetiker Date: Mon, 20 Aug 2007 14:36:13 +0000 Subject: fixed broken slave split --- lib/Smokeping.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Smokeping.pm') diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm index 17e995a..1cfeb05 100644 --- a/lib/Smokeping.pm +++ b/lib/Smokeping.pm @@ -1617,7 +1617,7 @@ sub update_rrds($$$$$$) { my $probeobj = $probes->{$probe}; my $pings = $probeobj->_pings($tree); if ($prop eq 'host' and check_filter($cfg,$name)) { - my %slave_test = ( map { $_,1 } split($tree->{slaves})); + my %slave_test = ( map { $_,1 } split(/\s+/, $tree->{slaves})); my $slaveupdates = Smokeping::Master::get_slaveupdates($name); my @updates = ([ "", time, $probeobj->rrdupdate_string($tree) ]); for my $slave (@{$slaveupdates}){ -- cgit v1.2.3-24-g4f1b