Thermal equilibrium in a diverted plasma