Commit 5ee0c0b2 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Show uid in testbed_stats dump. Clean up query a bit; return just the

7 fields we want instead of a zillion.
parent fb9a442d
...@@ -149,7 +149,8 @@ else { ...@@ -149,7 +149,8 @@ else {
} }
$query_result = $query_result =
DBQueryFatal("select s.*,t.*,r.*,t.idx as statno,t.tstamp as ttstamp ". DBQueryFatal("select t.exptidx,s.pid,s.eid,t.action,t.exitcode,t.uid, ".
" r.pnodes,t.idx as statno,t.tstamp as ttstamp ".
" from testbed_stats as t ". " from testbed_stats as t ".
"left join experiment_stats as s on s.exptidx=t.exptidx ". "left join experiment_stats as s on s.exptidx=t.exptidx ".
"left join experiment_resources as r on r.idx=t.rsrcidx ". "left join experiment_resources as r on r.idx=t.rsrcidx ".
...@@ -163,6 +164,7 @@ if (mysql_num_rows($query_result) == 0) { ...@@ -163,6 +164,7 @@ if (mysql_num_rows($query_result) == 0) {
echo "<table align=center border=1> echo "<table align=center border=1>
<tr> <tr>
<th>#</th> <th>#</th>
<th>Uid</th>
<th>Pid</th> <th>Pid</th>
<th>Eid</th> <th>Eid</th>
<th>ExptIdx</th> <th>ExptIdx</th>
...@@ -176,6 +178,7 @@ while ($row = mysql_fetch_assoc($query_result)) { ...@@ -176,6 +178,7 @@ while ($row = mysql_fetch_assoc($query_result)) {
$exptidx = $row[exptidx]; $exptidx = $row[exptidx];
$pid = $row[pid]; $pid = $row[pid];
$eid = $row[eid]; $eid = $row[eid];
$uid = $row[uid];
$when = $row[ttstamp]; $when = $row[ttstamp];
$action = $row[action]; $action = $row[action];
$ecode = $row[exitcode]; $ecode = $row[exitcode];
...@@ -183,6 +186,7 @@ while ($row = mysql_fetch_assoc($query_result)) { ...@@ -183,6 +186,7 @@ while ($row = mysql_fetch_assoc($query_result)) {
echo "<tr> echo "<tr>
<td>$idx</td> <td>$idx</td>
<td>$uid</td>
<td>$pid</td> <td>$pid</td>
<td>$eid</td> <td>$eid</td>
<td><a href=showexpstats.php3?record=$exptidx>$exptidx</a></td> <td><a href=showexpstats.php3?record=$exptidx>$exptidx</a></td>
......
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