diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2006-08-30 10:15:07 +0200 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2006-08-30 10:15:07 +0200 |
commit | c4c40a6046548f022440d8ccfdae49da9fa3a5e5 (patch) | |
tree | ab87691b206e7427d160452961157973bc3be659 /lib | |
parent | fb7a20fbf7d55ecc6990918ea099f44daf8b9dd0 (diff) | |
download | smokeping-c4c40a6046548f022440d8ccfdae49da9fa3a5e5.tar.gz smokeping-c4c40a6046548f022440d8ccfdae49da9fa3a5e5.tar.xz |
* spelling fix
* call rrdupdate_string only once
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Smokeping.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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'; |