Skip to content

Commit

Permalink
fix a bug(may be)
Browse files Browse the repository at this point in the history
before enter to the processDataStageIn(),classtype has already be limited to ClassType.COMPUTE.value, with another limit to STAGE_IN will result in this code never be executated.
the data transfer time will always be zero without fix the bug.
another question: what's the unite of bwth and rate ? seems they are quite different. 
thanks.
Looking forward to hearing from you : xyw0537@163.com
  • Loading branch information
xyw0537 committed Mar 23, 2015
1 parent 5914964 commit 2bc6e9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/org/workflowsim/WorkflowDatacenter.java
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ protected double processDataStageIn(List<File> requiredFiles, Cloudlet cl) throw
/**
* Picks up the site that is closest
*/
if (cl.getClassType() == ClassType.STAGE_IN.value) {
//if (cl.getClassType() == ClassType.STAGE_IN.value) {
double maxRate = Double.MIN_VALUE;
for (Storage storage : getStorageList()) {
double rate = storage.getMaxTransferRate();
Expand All @@ -290,7 +290,7 @@ protected double processDataStageIn(List<File> requiredFiles, Cloudlet cl) throw
}
//Storage storage = getStorageList().get(0);
time += file.getSize() / maxRate;
}
//}
break;
case LOCAL:
int vmId = cl.getVmId();
Expand Down

0 comments on commit 2bc6e9e

Please sign in to comment.