fixed Uptime calculation