Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
6326c690
Commit
6326c690
authored
Oct 20, 2006
by
Mike Hibler
Browse files
Fix logic bug that has been around a while
parent
4d4a27e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
event/linktest/linktest.pl.in
View file @
6326c690
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment