Sensex ended the day at 79,595.59, gaining 187.09 points or 0.24%, while the Nifty 50 settled at 24,167.25, up by 41.70 points or 0.17%