- Timestamp:
- 06/03/14 15:16:36 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/example/timeestimation/coolemall/CPUFreqScalingPhaseTimeEstimationPlugin.java
r1345 r1364 26 26 double completionPercentage) { 27 27 28 Executable exec = (Executable) task;29 ResourceConsumption resConsumption = exec.getResourceConsumptionProfile().getCurrentResourceConsumption();30 28 String taskFreqString = task.getCurrentResourceConsumption().getReferenceHardware().get("cpu_maxfreq"); 31 29 double taskFreq = Double.valueOf(taskFreqString); … … 51 49 currentFrequency = taskFreq; 52 50 53 double execTime = (1 - completionPercentage/100) * resConsumption.getDuration() * (taskFreq / currentFrequency);51 double execTime = (1 - completionPercentage/100) * task.getCurrentResourceConsumption().getDuration() * (taskFreq / currentFrequency); 54 52 55 53 // if the result is very close to 0, but less then one millisecond then round this result to 0.001
Note: See TracChangeset
for help on using the changeset viewer.