Commit d992a09e authored by Mike Hibler's avatar Mike Hibler

Fix another query to use experiments.state and take advantage of the

new index.

I am assuming here (and in the previous checkin) that
swap_requests>0 only when state='active', which seems reasonable and
I have seen no contridictions in a quick scan of code.
parent 6252a906
......@@ -50,7 +50,7 @@ function SHOWSTATS()
$query_result =
DBQueryFatal("select count(*) from experiments where ".
"swap_requests > 0 and idle_ignore=0 ".
"state='active' and swap_requests > 0 and idle_ignore=0 ".
"and pid!='emulab-ops' and pid!='testbed'");
if (mysql_num_rows($query_result) != 1) {
$idle_expts = "ERR";
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment