Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
fb657fb5
Commit
fb657fb5
authored
Mar 15, 2015
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix for checks when doing an update; adjust for currently allocated
nodes.
parent
75f2c4ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
db/libadminctrl.pm.in
db/libadminctrl.pm.in
+6
-1
No files found.
db/libadminctrl.pm.in
View file @
fb657fb5
#
!/usr/bin/perl -w
#
#
Copyright
(
c
)
2000
-
201
0
University
of
Utah
and
the
Flux
Group
.
#
Copyright
(
c
)
2000
-
201
5
University
of
Utah
and
the
Flux
Group
.
#
#
{{{
EMULAB
-
LICENSE
#
...
...
@@ -220,6 +220,7 @@ my $TB = "@prefix@";
my
$
debug
=
0
;
my
$
expt_min
;
my
$
expt_max
;
my
$
expt_cur
;
my
%
virt_types
=
();
#
Indexed
by
virt
type
,
gives
number
desired
my
%
virt_classes
=
();
#
Indexed
by
virt
class
,
gives
number
desired
my
%
node_types
=
();
#
Indexed
by
type
,
gives
class
...
...
@@ -1102,6 +1103,10 @@ sub TBAdmissionControlCheck($$$)
return
-
1
if
(
!TBExptMinMaxNodes($pid, $eid, \$expt_min, \$expt_max));
#
Watch
for
update
,
see
how
many
nodes
this
experiment
is
using
now
.
$
expt_cur
=
scalar
($
experiment
->
Nodelist
(
1
));
$
expt_min
-=
$
expt_cur
;
LoadNodeTypes
();
LoadVirtNodeTypes
($
pid
,
$
eid
);
LoadCurrent
($
uid
,
$
pid
,
$
gid
);
...
...
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