# File lib/openshift-origin-controller/app/models/group_instance.rb, line 280
  def self.merge_min_max(min1, max1, min2, max2)
    newmin = min1>min2 ? min1 : min2

    if max1 < max2 
      if max1 >= 0
        newmax = max1
      else
        newmax = max2
      end
    elsif max2 >= 0
      newmax = max2
    else
      newmax = max1
    end

    if newmin > newmax and newmax >= 0
      newmin = newmax  
    end
    return newmin,newmax
  end