fixed detail using last_restarted for downtime, made uptime calculator more readable