From c4c40a6046548f022440d8ccfdae49da9fa3a5e5 Mon Sep 17 00:00:00 2001 From: Tobi Oetiker Date: Wed, 30 Aug 2006 08:15:07 +0000 Subject: * spelling fix * call rrdupdate_string only once --- lib/Smokeping.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Smokeping.pm') diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm index 1389f8d..fbf8a56 100644 --- a/lib/Smokeping.pm +++ b/lib/Smokeping.pm @@ -1112,7 +1112,7 @@ sub update_rrds($$$$$) { if (ref $tree->{$prop} eq 'HASH'){ update_rrds $cfg, $probes, $tree->{$prop}, $name."/$prop", $justthisprobe; } - # if we are looking down a branche where no probe propperty is set there is not sense + # if we are looking down a branche where no probe property is set there is no sense # in further exploring it next unless defined $probe; next if defined $justthisprobe and $probe ne $justthisprobe; @@ -1145,7 +1145,7 @@ sub update_rrds($$$$$) { $tree->{stack} = {loss=>['S'],rtt=>['S']} unless defined $tree->{stack}; my $x = $tree->{stack}; my ($loss,$rtt) = - (split /:/, $probeobj->rrdupdate_string($tree))[1,2]; + (split /:/, $updatestring)[1,2]; $loss = undef if $loss eq 'U'; my $lossprct = $loss * 100 / $pings; $rtt = undef if $rtt eq 'U'; -- cgit v1.2.3-24-g4f1b