Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
gpucloudsim
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LPDS
gpucloudsim
Commits
f7f3f15a
Commit
f7f3f15a
authored
May 06, 2011
by
Anton Beloglazov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Small fix
parent
2a72d522
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
Datacenter.java
...udsim/src/main/java/org/cloudbus/cloudsim/Datacenter.java
+7
-5
No files found.
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/Datacenter.java
View file @
f7f3f15a
...
...
@@ -93,7 +93,7 @@ public class Datacenter extends SimEntity {
setStorageList
(
storageList
);
setVmList
(
new
ArrayList
<
Vm
>());
setSchedulingInterval
(
schedulingInterval
);
for
(
Host
host:
getCharacteristics
().
getHostList
())
{
host
.
setDatacenter
(
this
);
}
...
...
@@ -542,7 +542,7 @@ public class Datacenter extends SimEntity {
boolean
result
=
getVmAllocationPolicy
().
allocateHostForVm
(
vm
,
host
);
if
(!
result
)
{
Log
.
printLine
(
"[Datacenter.processVmMigrate] VM allocation to the destination host failed"
);
System
.
exit
(
0
);
System
.
exit
(
0
);
}
if
(
ack
)
{
...
...
@@ -765,7 +765,7 @@ public class Datacenter extends SimEntity {
double
estimatedFinishTime
=
scheduler
.
cloudletSubmit
(
cl
,
fileTransferTime
);
//if (estimatedFinishTime > 0.0 && estimatedFinishTime < getSchedulingInterval()) { //if this cloudlet is in the exec queue
if
(
estimatedFinishTime
>
0.0
)
{
//if this cloudlet is in the exec queue
if
(
estimatedFinishTime
>
0.0
&&
!
Double
.
isInfinite
(
estimatedFinishTime
)
)
{
//if this cloudlet is in the exec queue
//double estimatedFinishTime = (cl.getCloudletTotalLength()/(capacity*cl.getPesNumber())); //time to process the cloudlet
//Log.printLine(estimatedFinishTime+"="+gl.getCloudletLength()+"/("+capacity+"*"+gl.getNumPE()+")");
estimatedFinishTime
+=
fileTransferTime
;
...
...
@@ -773,7 +773,7 @@ public class Datacenter extends SimEntity {
//Log.printLine(CloudSim.clock()+": Next event scheduled to +"+estimatedFinishTime);
send
(
getId
(),
estimatedFinishTime
,
CloudSimTags
.
VM_DATACENTER_EVENT
);
}
if
(
ack
)
{
int
[]
data
=
new
int
[
3
];
data
[
0
]
=
getId
();
...
...
@@ -924,7 +924,9 @@ public class Datacenter extends SimEntity {
}
}
//gurantees a minimal interval before scheduling the event
if
(
smallerTime
<
CloudSim
.
clock
()+
0.1
)
smallerTime
=
CloudSim
.
clock
()+
0.1
;
if
(
smallerTime
<
CloudSim
.
clock
()+
0.1
)
{
smallerTime
=
CloudSim
.
clock
()+
0.1
;
}
if
(
smallerTime
!=
Double
.
MAX_VALUE
)
{
schedule
(
getId
(),
(
smallerTime
-
CloudSim
.
clock
()),
CloudSimTags
.
VM_DATACENTER_EVENT
);
...
...
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