Commit 7cd5433e authored by Leigh B. Stoller's avatar Leigh B. Stoller

Fix off by one error in count; now I must leave for the dentist!

parent 29ca24eb
......@@ -35,7 +35,6 @@ function GENPLIST ($which, $query_result)
$state = $row["state"];
if ($pid == $TBOPSPID || $pnodes == 0 ||
($pid == "ron" && $eid == "all") ||
!isset($thumb_hash)) {
continue;
}
......@@ -71,8 +70,10 @@ $query_result =
" ve.pid=e.pid and ve.eid=e.eid ".
"left join experiment_stats as s on s.exptidx=e.idx ".
"left join experiment_resources as rs on rs.idx=s.rsrcidx ".
"where rs.pnodes!=0 and ".
" e.state='" . $TB_EXPTSTATE_ACTIVE . "' " .
"where rs.pnodes>0 and ".
" e.state='" . $TB_EXPTSTATE_ACTIVE . "' and " .
" e.pid!='emulab-ops' and ".
" (e.pid!='ron' and e.eid!='all') ".
"order by s.swapin_last desc ");
echo "<a NAME=active></a>\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment