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
cb246bb9
Commit
cb246bb9
authored
Jun 17, 2003
by
Mac Newbold
Browse files
Show which nodes have stale idleness on the expt info page.
parent
ff8ec258
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/showstuff.php3
View file @
cb246bb9
...
...
@@ -975,9 +975,9 @@ function SHOWNODES($pid, $eid) {
<th>Type</th>
<th>Default OSID</th>
<th>Node<br>Status</th>
<th>Hours<br>Idle</th>
<th>Startup<br>Status[<b>
1
</b>]</th>
<th>Ready<br>Status[<b>
2
</b>]</th>
<th>Hours<br>Idle
[<b>1</b>]
</th>
<th>Startup<br>Status[<b>
2
</b>]</th>
<th>Ready<br>Status[<b>
3
</b>]</th>
</tr>
\n
"
;
$sort
=
"type,priority"
;
...
...
@@ -998,6 +998,8 @@ function SHOWNODES($pid, $eid) {
"WHERE reserved.eid=
\"
$eid
\"
and reserved.pid=
\"
$pid
\"
"
.
"ORDER BY
$sort
"
);
$stalemark
=
"<b>?</b>"
;
while
(
$row
=
mysql_fetch_array
(
$query_result
))
{
$node_id
=
$row
[
node_id
];
$vname
=
$row
[
$vnamefield
];
...
...
@@ -1007,7 +1009,14 @@ function SHOWNODES($pid, $eid) {
$readystatus
=
$row
[
ready
];
$status
=
$row
[
nodestatus
];
$bootstate
=
$row
[
eventstate
];
$idlehrs
=
TBGetNodeIdleTime
(
$node_id
);
$idlehours
=
TBGetNodeIdleTime
(
$node_id
);
$stale
=
TBGetNodeIdleStale
(
$node_id
);
$idlestr
=
$idlehours
;
if
(
$idlehours
>
0
)
{
if
(
$stale
)
{
$idlestr
.
=
$stalemark
;
}
if
(
$ignore
)
{
$idlestr
=
"(
$idlestr
)"
;
$parens
=
1
;
}
}
elseif
(
$idlehours
==
-
1
)
{
$idlestr
=
" "
;
}
if
(
!
$vname
)
$vname
=
"--"
;
...
...
@@ -1035,7 +1044,7 @@ function SHOWNODES($pid, $eid) {
echo
" <td>
$status
</td>
\n
"
;
}
echo
" <td>
$idle
hrs
</td>
echo
" <td>
$idle
str
</td>
<td align=center>
$startstatus
</td>
<td align=center>
$readylabel
</td>
</tr>
\n
"
;
...
...
@@ -1043,6 +1052,8 @@ function SHOWNODES($pid, $eid) {
echo
"</table>
\n
"
;
echo
"<h4><blockquote><blockquote><blockquote>
<ol>
<li>A
$stalemark
indicates that the data is stale, and
the node has not reported on its proper schedule.
<li>Exit value of the node startup command. A value of
666 indicates a testbed internal error.
<li>User application ready status, reported via TMCC.
...
...
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