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
7d4408e9
Commit
7d4408e9
authored
Apr 07, 2011
by
rodrigo.calheiros
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Datacenter: Fixed problem with very short intervals between events.
parent
e4068c6d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
Datacenter.java
...udsim/src/main/java/org/cloudbus/cloudsim/Datacenter.java
+5
-4
No files found.
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/Datacenter.java
View file @
7d4408e9
...
...
@@ -910,7 +910,7 @@ public class Datacenter extends SimEntity {
protected
void
updateCloudletProcessing
()
{
//Log.printLine(CloudSim.clock()+": PowerDatacenter #"+this.get_id()+": updating cloudlet processing.......................................");
//if some time passed since last processing
if
(
CloudSim
.
clock
()
>
this
.
getLastProcessTime
())
{
if
(
CloudSim
.
clock
()
>
this
.
getLastProcessTime
()
+
0.1
)
{
List
<?
extends
Host
>
list
=
getVmAllocationPolicy
().
getHostList
();
double
smallerTime
=
Double
.
MAX_VALUE
;
//for each host...
...
...
@@ -922,9 +922,10 @@ public class Datacenter extends SimEntity {
smallerTime
=
time
;
}
}
//schedules an event to the next time, if valid
//if (smallerTime > CloudSim.clock() + 0.01 && smallerTime != Double.MAX_VALUE && smallerTime < getSchedulingInterval()) {
if
(
smallerTime
>
CloudSim
.
clock
()
+
0.01
&&
smallerTime
!=
Double
.
MAX_VALUE
)
{
//gurantees a minimal interval before scheduling the event
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
);
}
setLastProcessTime
(
CloudSim
.
clock
());
...
...
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