Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
5ee0c0b2
Commit
5ee0c0b2
authored
Jun 18, 2003
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show uid in testbed_stats dump. Clean up query a bit; return just the
7 fields we want instead of a zillion.
parent
fb9a442d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
www/showstats.php3
www/showstats.php3
+5
-1
No files found.
www/showstats.php3
View file @
5ee0c0b2
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
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