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
04ae7428
Commit
04ae7428
authored
Jul 04, 2003
by
Robert Ricci
Browse files
Change the way we count active experiments - only include those with
allocated nodes.
parent
2b5a57d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/index.php3
View file @
04ae7428
...
...
@@ -14,8 +14,10 @@ PAGEHEADER("Home");
# Get some stats about current experiments
$query_result
=
DBQueryFatal
(
"select count(*) from experiments where "
.
"state='active' and pid!='emulab-ops'"
);
DBQueryFatal
(
"select count(*) from experiments as e "
.
"left join experiment_stats as s on s.exptidx=e.idx "
.
"left join experiment_resources as rs on rs.idx=s.rsrcidx "
.
"where state='active' and rs.pnodes > 0 and e.pid != 'emulab-ops'"
);
if
(
mysql_num_rows
(
$query_result
)
!=
1
)
{
$active_expts
=
"ERR"
;
}
else
{
...
...
Write
Preview
Markdown
is supported
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