Commit 807f505a authored by Leigh Stoller's avatar Leigh Stoller

Add clause to node query to select just experimental nodes when -e

option was given (as is when called from experiment page). This
restricts the nodes to just those in the experiment.

This interacts with ghosting mode (where other nodes on other floors
are shown). In the above case, should ghosting show all nodes on other
floors, or just nodes in the experiment on other floors? For now, it
does the latter, but it might useful to have a mode for the other
case?
parent 47750224
......@@ -437,7 +437,8 @@ sub dofloor($$)
my $query = "select loc.*,r.pid,r.eid,r.vname ".
" from location_info as loc ".
"left join reserved as r on r.node_id=loc.node_id ".
"where loc.building='$building'";
"where loc.building='$building' " .
(defined($pid) ? " and r.pid='$pid' and r.eid='$eid'" : "");
my $query_result = DBQueryFatal($query . " and loc.floor='$floor'");
my $newnodes_query = "select * from new_nodes ".
......
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