Despite falling short, DeVry posts profit in Q2