Fix total uptime being calculated incorrectly