Commit 72021960 authored by Leigh Stoller's avatar Leigh Stoller

Minor fix to previous revision; for swapmod the current used nodes

should not count against the global capacity limits.
parent 1ce85191
......@@ -313,7 +313,10 @@ else {
$result =
DBQueryFatal("select phys_nodeid,count(phys_nodeid) from reserved as r ".
"left join nodes as n on n.node_id=r.node_id ".
"where n.node_id!=n.phys_nodeid group by phys_nodeid");
"where n.node_id!=n.phys_nodeid ".
(defined($exempt_eid) ?
"and not (pid='$pid' and eid='$exempt_eid') " : " ") .
"group by phys_nodeid");
while (my ($node_id,$count) = $result->fetchrow_array) {
$globalcounts{$node_id} = $count;
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