Fix uptime computation