Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
72021960
Commit
72021960
authored
Jan 28, 2008
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fix to previous revision; for swapmod the current used nodes
should not count against the global capacity limits.
parent
1ce85191
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
tbsetup/ptopgen.in
tbsetup/ptopgen.in
+4
-1
No files found.
tbsetup/ptopgen.in
View file @
72021960
...
...
@@ -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
;
}
...
...
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