Changeset 1364 for DCWoRMS


Ignore:
Timestamp:
06/03/14 15:16:36 (11 years ago)
Author:
wojtekp
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/branches/coolemall/src/example/timeestimation/coolemall/CPUFreqScalingPhaseTimeEstimationPlugin.java

    r1345 r1364  
    2626                        double completionPercentage) { 
    2727                 
    28                 Executable exec = (Executable) task; 
    29                 ResourceConsumption resConsumption = exec.getResourceConsumptionProfile().getCurrentResourceConsumption(); 
    3028                String taskFreqString = task.getCurrentResourceConsumption().getReferenceHardware().get("cpu_maxfreq"); 
    3129                double taskFreq = Double.valueOf(taskFreqString); 
     
    5149                        currentFrequency = taskFreq; 
    5250 
    53                 double execTime = (1 - completionPercentage/100) * resConsumption.getDuration() * (taskFreq / currentFrequency); 
     51                double execTime = (1 - completionPercentage/100) * task.getCurrentResourceConsumption().getDuration() * (taskFreq / currentFrequency); 
    5452 
    5553                // 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.