Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lucas Cavalcante
cloudsimplus
Commits
44d2bbac
Commit
44d2bbac
authored
Jul 19, 2018
by
Rafael Vieira Falcão
Browse files
Correction of bug at the optimistic consolidation of the loose hosts
parent
89a4945f
Changes
1
Hide whitespace changes
Inline
Side-by-side
cloudsim-plus/src/main/java/org/cloudbus/cloudsim/allocationpolicies/migration/VmAllocationPolicyMigrationSlaFixedTightHost.java
View file @
44d2bbac
...
...
@@ -104,8 +104,8 @@ public class VmAllocationPolicyMigrationSlaFixedTightHost extends VmAllocationPo
for
(
int
i
=
0
;
i
<
orderedLooseHosts
.
size
();
i
++)
{
for
(
int
j
=
orderedLooseHosts
.
size
()
-
1
;
j
>=
0
;
j
--)
{
if
(
i
>
=
j
)
continue
;
if
(
i
=
=
j
||
orderedLooseHosts
.
get
(
i
).
getVmList
().
isEmpty
()
)
break
;
for
(
Vm
vm
:
orderedLooseHosts
.
get
(
i
).
getVmList
())
{
if
(
orderedLooseHosts
.
get
(
j
).
isSuitableForVm
(
vm
))
{
actualMigrationMap
.
put
(
vm
,
orderedLooseHosts
.
get
(
j
));
...
...
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