Skip to content
GitLab
Menu
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
3e190994
Commit
3e190994
authored
May 20, 2003
by
Leigh B. Stoller
Browse files
Use node_status.status instead of nodes.status.
parent
8ff5d76a
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/showstuff.php3
View file @
3e190994
...
...
@@ -891,11 +891,12 @@ function SHOWNODES($pid, $eid) {
$query_result
=
DBQueryFatal
(
"SELECT nodes.*,reserved.*, "
.
DBQueryFatal
(
"SELECT nodes.*,reserved.*,
ns.status as nodestatus,
"
.
"date_format(rsrv_time,
\"
%Y-%m-%d %T
\"
) as rsrvtime "
.
"FROM nodes LEFT JOIN node_activity "
.
"on nodes.node_id=node_activity.node_id "
.
"LEFT JOIN reserved ON nodes.node_id=reserved.node_id "
.
"LEFT JOIN node_status as ns ON ns.node_id=nodes.node_id "
.
"WHERE reserved.eid=
\"
$eid
\"
and reserved.pid=
\"
$pid
\"
"
.
"ORDER BY
$sort
"
);
...
...
@@ -906,7 +907,7 @@ function SHOWNODES($pid, $eid) {
$def_boot_osid
=
$row
[
def_boot_osid
];
$startstatus
=
$row
[
startstatus
];
$readystatus
=
$row
[
ready
];
$status
=
$row
[
status
];
$status
=
$row
[
node
status
];
$bootstate
=
$row
[
eventstate
];
$idlehrs
=
TBGetNodeIdleTime
(
$node_id
);
...
...
Write
Preview
Supports
Markdown
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