Use timedelta.total_seconds() to fetch seconds in uptime segment

Closes #143.