class ConsolidationScoredPreferenceForSmallHosts extends ConsolidationAlgorithmBase {

    protected double cloudMemoryUsagePercentage(CloudResources cloudResources) {
        double cloudMemory = cloudResources.getMemoryInBytes() / BYTES_TO_MEGA_BYTES_AS_DOUBLE;
        double cloudUsedMemory = cloudResources.getUsedMemory() / BYTES_TO_MEGA_BYTES_AS_DOUBLE;
        return cloudUsedMemory / cloudMemory;
    }

}