Solved bug in uptime calculation.