fixed uptime calculation, was not accounting for cached contracts correctly