Commit 2270c5f4 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Change testbed_stats to record the start time, in addition to the

final time, so that we can see how long things take. As per Jay's
request.
parent 283cf638
......@@ -3562,20 +3562,12 @@ sub GatherSwapStats($$$$$;$)
logit:
my $starttime = (!defined($TBDB_STATS_STARTCLOCK) ? "NULL" :
"FROM_UNIXTIME($TBDB_STATS_STARTCLOCK)");
if ("@OURDOMAIN@" eq "ballmoss.com") {
DBQueryWarn("insert into testbed_stats ".
DBQueryWarn("insert into testbed_stats ".
"(idx, uid, start_time, end_time, exptidx, rsrcidx, ".
" action, exitcode) ".
"values (0, '$uid', $starttime, now(), $exptidx, $rsrcidx, ".
" '$mode', $ecode)");
}
else {
DBQueryWarn("insert into testbed_stats ".
"(idx, uid, tstamp, exptidx, rsrcidx, ".
" action, exitcode) ".
"values (0, '$uid', now(), $exptidx, $rsrcidx, ".
" '$mode', $ecode)");
}
}
#
......
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