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-stable
Commits
225432a8
Commit
225432a8
authored
Dec 09, 2004
by
Leigh B. Stoller
Browse files
In the showexp page, show max nodes as well as min nodes.
parent
a744e491
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/showstuff.php3
View file @
225432a8
...
...
@@ -588,7 +588,8 @@ function SHOWEXP($pid, $eid, $short = 0, $sortby = "") {
$query_result
=
DBQueryFatal
(
"select e.*, pl.slicename, "
.
"round(e.minimum_nodes+.1,0) as min_nodes "
.
"round(e.minimum_nodes+.1,0) as min_nodes, "
.
"round(e.maximum_nodes+.1,0) as max_nodes "
.
" from experiments as e left join plab_slices as pl"
.
" on e.pid = pl.pid and e.eid = pl.eid "
.
"where e.pid='
$pid
' and e.eid='
$eid
'"
);
...
...
@@ -623,6 +624,7 @@ function SHOWEXP($pid, $eid, $short = 0, $sortby = "") {
$swapreqs
=
$exprow
[
swap_requests
];
$lastswapreq
=
$exprow
[
last_swap_req
];
$minnodes
=
$exprow
[
"min_nodes"
];
$maxnodes
=
$exprow
[
"max_nodes"
];
$syncserver
=
$exprow
[
"sync_server"
];
$mem_usage
=
$exprow
[
"mem_usage"
];
$cpu_usage
=
$exprow
[
"cpu_usage"
];
...
...
@@ -771,9 +773,9 @@ function SHOWEXP($pid, $eid, $short = 0, $sortby = "") {
elseif
(
!
$short
)
{
if
(
$minnodes
!=
""
)
{
echo
"<tr>
<td>Min
umum
Nodes: </td>
<td>Min
/Max
Nodes: </td>
<td class=
\"
left
\"
><font color=green>
$minnodes
(estimate)</font></td>
$minnodes
/
$maxnodes
(estimate
s
)</font></td>
</tr>
\n
"
;
}
else
{
...
...
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