dimensiondata/src/main/java/org/jclouds/dimensiondata/cloudcontrol/compute/functions/BaseImageToHardware.java [42:63]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      HardwareBuilder builder = new HardwareBuilder().ids(from.id()).name(from.name()).hypervisor("vmx")
            .processors(buildProcessorList(from.cpu())).ram(from.memoryGb() * GB_TO_MB_MULTIPLIER);

      if (from.disks() != null) {
         builder.volumes(FluentIterable.from(from.disks()).transform(new Function<Disk, Volume>() {
            @Override
            public Volume apply(final Disk disk) {
               return new VolumeBuilder().id(disk.id()).device(String.valueOf(disk.scsiId()))
                     .size(Float.valueOf(disk.sizeGb())).type(Volume.Type.LOCAL).build();
            }
         }).toSet());
      }
      return builder.build();
   }

   private List<Processor> buildProcessorList(final CPU cpu) {
      final List<Processor> processorList = new ArrayList<Processor>();
      final double speed = CpuSpeed.fromDimensionDataSpeed(cpu.speed()).getSpeed();
      for (int count = 0; count < cpu.count(); count++) {
         processorList.add(new Processor(cpu.coresPerSocket(), speed));
      }
      return processorList;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



dimensiondata/src/main/java/org/jclouds/dimensiondata/cloudcontrol/compute/functions/ServerToHardware.java [42:63]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      HardwareBuilder builder = new HardwareBuilder().ids(from.id()).name(from.name()).hypervisor("vmx")
            .processors(buildProcessorList(from.cpu())).ram(from.memoryGb() * GB_TO_MB_MULTIPLIER);

      if (from.disks() != null) {
         builder.volumes(FluentIterable.from(from.disks()).transform(new Function<Disk, Volume>() {
            @Override
            public Volume apply(final Disk disk) {
               return new VolumeBuilder().id(disk.id()).device(String.valueOf(disk.scsiId()))
                     .size(Float.valueOf(disk.sizeGb())).type(Volume.Type.LOCAL).build();
            }
         }).toSet());
      }
      return builder.build();
   }

   private List<Processor> buildProcessorList(final CPU cpu) {
      final List<Processor> processorList = new ArrayList<Processor>();
      final double speed = CpuSpeed.fromDimensionDataSpeed(cpu.speed()).getSpeed();
      for (int count = 0; count < cpu.count(); count++) {
         processorList.add(new Processor(cpu.coresPerSocket(), speed));
      }
      return processorList;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



