Skip to content
GitLab
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
51627fc5
Commit
51627fc5
authored
Jul 28, 2003
by
Leigh B. Stoller
Browse files
Show new role column in reserved table.
parent
ab767e2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/showstuff.php3
View file @
51627fc5
...
...
@@ -1489,7 +1489,7 @@ function SHOWNODE($node_id) {
DBQueryFatal
(
"select n.*,na.*,r.vname,r.pid,r.eid,i.IP, "
.
"greatest(last_tty_act,last_net_act,last_cpu_act,"
.
"last_ext_act) as last_act, "
.
" t.isvirtnode,t.isremotenode "
.
" t.isvirtnode,t.isremotenode
,r.erole as rsrvrole
"
.
" from nodes as n "
.
"left join reserved as r on n.node_id=r.node_id "
.
"left join node_activity as na on n.node_id=na.node_id "
.
...
...
@@ -1538,6 +1538,7 @@ function SHOWNODE($node_id) {
$last_cpu_act
=
$row
[
last_cpu_act
];
$last_ext_act
=
$row
[
last_ext_act
];
$last_report
=
$row
[
last_report
];
$rsrvrole
=
$row
[
rsrvrole
];
if
(
!
$def_boot_cmd_line
)
$def_boot_cmd_line
=
" "
;
...
...
@@ -1765,6 +1766,13 @@ function SHOWNODE($node_id) {
<td class=left>
$IP
</td>
</tr>
\n
"
;
if
(
$rsrvrole
)
{
echo
"<tr>
<td>Role:</td>
<td class=left>
$rsrvrole
</td>
</tr>
\n
"
;
}
echo
"<tr>
<td>Bios Version:</td>
<td class=left>
$bios
</td>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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