[tor-commits] [tor/master] Avoid overflow in format_time_interval, create unit tests