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
e5264bf3
Commit
e5264bf3
authored
Apr 23, 2006
by
Leigh B. Stoller
Browse files
Set unspecified values (latency,bw,loss) to NULL instead of zero so we
know what is actually being reported.
parent
efe42822
Changes
1
Hide whitespace changes
Inline
Side-by-side
pelab/bgmon/opsrecv.pl
View file @
e5264bf3
...
...
@@ -285,9 +285,9 @@ sub saveTestToDB()
my
$testtype
=
$results
{'
testtype
'};
my
$result
=
$results
{'
result
'};
my
$tstamp
=
$results
{'
tstamp
'};
my
$latency
=
(
$testtype
eq
"
latency
"
?
"
$result
"
:
"
0
"
);
my
$loss
=
(
$testtype
eq
"
loss
"
?
"
$result
"
:
"
0
"
);
my
$bw
=
(
$testtype
eq
"
bw
"
?
"
$result
"
:
"
0
"
);
my
$latency
=
(
$testtype
eq
"
latency
"
?
"
$result
"
:
NULL
);
my
$loss
=
(
$testtype
eq
"
loss
"
?
"
$result
"
:
NULL
);
my
$bw
=
(
$testtype
eq
"
bw
"
?
"
$result
"
:
NULL
);
if
(
$bw
eq
"")
{
my
$src
=
$results
{'
linksrc
'};
...
...
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