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
48dc8185
Commit
48dc8185
authored
Jan 06, 2012
by
Anton Beloglazov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed HostTest
parent
da7a2d31
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
Vm.java
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/Vm.java
+6
-0
No files found.
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/Vm.java
View file @
48dc8185
...
@@ -197,6 +197,9 @@ public class Vm {
...
@@ -197,6 +197,9 @@ public class Vm {
* @return the current requested bw
* @return the current requested bw
*/
*/
public
long
getCurrentRequestedBw
()
{
public
long
getCurrentRequestedBw
()
{
if
(
isBeingInstantiated
())
{
return
getBw
();
}
return
(
long
)
(
getCloudletScheduler
().
getCurrentRequestedUtilizationOfBw
()
*
getBw
());
return
(
long
)
(
getCloudletScheduler
().
getCurrentRequestedUtilizationOfBw
()
*
getBw
());
}
}
...
@@ -206,6 +209,9 @@ public class Vm {
...
@@ -206,6 +209,9 @@ public class Vm {
* @return the current requested ram
* @return the current requested ram
*/
*/
public
int
getCurrentRequestedRam
()
{
public
int
getCurrentRequestedRam
()
{
if
(
isBeingInstantiated
())
{
return
getRam
();
}
return
(
int
)
(
getCloudletScheduler
().
getCurrentRequestedUtilizationOfRam
()
*
getRam
());
return
(
int
)
(
getCloudletScheduler
().
getCurrentRequestedUtilizationOfRam
()
*
getRam
());
}
}
...
...
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