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
3690d8dc
Commit
3690d8dc
authored
Apr 10, 2003
by
Mac Newbold
Browse files
Change last act. timestamp for hours idle in shownodes (for showexp page).
parent
acdd7469
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/showstuff.php3
View file @
3690d8dc
...
...
@@ -715,16 +715,13 @@ function SHOWNODES($pid, $eid) {
<th>Type</th>
<th>Default OSID</th>
<th>Node<br>Status</th>
<th>
Last Activ
e</th>
<th>
Hours<br>Idl
e</th>
<th>Startup<br>Status[<b>1</b>]</th>
<th>Ready<br>Status[<b>2</b>]</th>
</tr>
\n
"
;
$query_result
=
DBQueryFatal
(
"SELECT nodes.*,reserved.vname, "
.
"lower(date_format(greatest(last_tty_act,last_net_act,"
.
"last_cpu_act,last_ext_act),
\"
%c/%d %l:%i:%s %p
\"
))"
.
"as acttime, "
.
"date_format(rsrv_time,
\"
%Y-%m-%d %T
\"
) as rsrvtime "
.
"FROM nodes LEFT JOIN node_activity "
.
"on nodes.node_id=node_activity.node_id "
.
...
...
@@ -741,7 +738,7 @@ function SHOWNODES($pid, $eid) {
$readystatus
=
$row
[
ready
];
$status
=
$row
[
status
];
$bootstate
=
$row
[
eventstate
];
$
acttime
=
$row
[
acttime
]
;
$
idlehrs
=
TBGetNodeIdleTime
(
$node_id
)
;
if
(
!
$vname
)
$vname
=
"--"
;
...
...
@@ -769,7 +766,7 @@ function SHOWNODES($pid, $eid) {
echo
" <td>
$status
</td>
\n
"
;
}
echo
" <td>
$
acttime
</td>
echo
" <td>
$
idlehrs
</td>
<td align=center>
$startstatus
</td>
<td align=center>
$readylabel
</td>
</tr>
\n
"
;
...
...
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