Update uptime.php

change some code