Commit 6326c690 authored by Mike Hibler's avatar Mike Hibler

Fix logic bug that has been around a while

parent 4d4a27e1
......@@ -1053,6 +1053,10 @@ sub header_size {
sub link_rtt {
my ($edge,$other_edge,$psize) = @_;
# XXX assume a ping packet
$psize = 56
if (!defined($psize));
# the null hypothesis value, u.
my $u = $edge->delay + $other_edge->delay;
......@@ -1184,7 +1188,7 @@ sub latency_test {
1, undef, $ptimo);
if ($reportonly) {
my $u = &link_rtt($edge, $other_edge, 56);
my $u = &link_rtt($edge, $other_edge);
&info(" Latency result on $hostname for " .
&print_edge($edge) .
......@@ -1201,7 +1205,7 @@ sub latency_test {
&error(NAME_LATENCY, $edge, $errmsg);
exit(EXIT_NOT_OK);
} else {
my $u = &link_rtt($edge, $other_edge, 56);
my $u = &link_rtt($edge, $other_edge);
my $x_bar = $sample_avg;
my $numerator = $x_bar - $u;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment