Update uptime calculation to take status in count

Closes #9.