updated the uptime section to work on multiple platforms