Commit ffa28c75 authored by Robert Ricci's avatar Robert Ricci
Browse files

Divide latency on wide-area links in half. Since they are normally

reported round-trip, and NS link delays are one-way, it was hard to
figure out how well they matched. The column header reflects this. Not
totally realistic, but should make the report much easier to read.
Suggested by Tim.

Also, added a check to avoid priting widearea links if the experiment
is not swapped in.
parent b7b88aa5
......@@ -275,7 +275,8 @@ if ($showlinks) {
if (keys %links) {
if (keys %links &&
(($state eq EXPTSTATE_ACTIVE) || ($state eq EXPTSTATE_TESTING))) {
# First, show using recent widearea data
......@@ -289,12 +290,12 @@ if ($showlinks) {
while (my ($node_id1, $node_id2, $time, $bandwidth,
$lossrate) = $result->fetchrow) {
$delaymap{"$node_id1 $node_id2"} =
[$time * 1000, $bandwidth * 8, $lossrate];
[$time * 1000 / 2, $bandwidth * 8, $lossrate];
print "Wide-Area Lan/Link Info: Recent Data\n";
printf "%-15s %-15s %-15s %-9s %-9s %-9s\n",
"ID", "Source", "Destination", "Delay", "BW (Kbs)", "Loss Rate";
"ID", "Source", "Destination", "Delay/2", "BW (Kbs)", "Loss Rate";
print "--------------- --------------- --------------- --------- ".
"--------- ---------\n";
Supports Markdown
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