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/RecsExclusivenessRandomSP.java

    r708 r734  
    9191 
    9292                        List<ComputingResource> choosenResources = new ArrayList<ComputingResource>();                           
    93                         for (int i = 0; i < cores.size() && cpuRequest > 0; i++) { 
     93                        for (int i = 0; i < cores.size(); i++) { 
    9494                                if (cores.get(i).getStatus() == ResourceStatus.FREE) { 
    95                                         choosenResources.add(cores.get(i)); 
     95                                        //choosenResources.add(cores.get(i)); 
    9696                                        cpuRequest--; 
    9797                                } 
    9898                        } 
    9999                        if (cpuRequest > 0) { 
    100                                 return null; 
     100                                //return null; 
    101101                        } 
     102                        choosenResources.add(node); 
    102103                        ProcessingElements pe = new ProcessingElements(); 
    103104                        pe.addAll(choosenResources); 
Note: See TracChangeset for help on using the changeset viewer.