Ignore:
Timestamp:
01/02/13 08:12:13 (12 years ago)
Author:
wojtekp
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/trunk/src/test/article/recs/plugins/scheduling/RecsExclusivenessEnOptSP.java

    r711 r734  
    127127                                 
    128128                                List<ComputingResource> choosenResources = new ArrayList<ComputingResource>();                           
    129                                 for (int i = 0; i < cores.size() && cpuRequest > 0; i++) { 
     129                                for (int i = 0; i < cores.size(); i++) { 
    130130                                        if (cores.get(i).getStatus() == ResourceStatus.FREE) { 
    131                                                 choosenResources.add(cores.get(i)); 
     131                                                //choosenResources.add(cores.get(i)); 
    132132                                                cpuRequest--; 
    133133                                        } 
    134134                                } 
     135                                choosenResources.add(node); 
    135136                                if (cpuRequest > 0) { 
    136                                         continue; 
     137                                        //continue; 
    137138                                } 
    138139                                map = new HashMap<ResourceUnitName, ResourceUnit>(); 
Note: See TracChangeset for help on using the changeset viewer.