Ignore:
Timestamp:
12/18/14 11:09:56 (10 years ago)
Author:
wojtekp
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/branches/coolemall/src/schedframe/resources/computing/description/ComputingResourceDescription.java

    r1423 r1453  
    6666                        this.devices = new ArrayList<Device>(); 
    6767                        for(int i = 0; i < dev.length; i++){ 
    68                                 Device device =  DeviceFactory.createDevice(new DeviceDescription(dev[i])); 
    69                                 this.devices.add(device); 
     68                                long devCount = dev[i].getCount() > 1 ? dev[i].getCount() : 1; 
     69                                for(int j = 0; j < devCount; j++){ 
     70                                        Device device =  DeviceFactory.createDevice(new DeviceDescription(dev[i])); 
     71                                        this.devices.add(device); 
     72                                } 
    7073                        } 
    7174                } 
Note: See TracChangeset for help on using the changeset viewer.