Commit e5264bf3 authored by Leigh B. Stoller's avatar 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
......@@ -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'};
......
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