fzaninotto / uptime

A remote monitoring application using Node.js, MongoDB, and Twitter Bootstrap.
http://fzaninotto.github.com/uptime/
MIT License
3.62k stars 703 forks source link

Availability percentage is wrong on page load #230

Open brantje opened 10 years ago

brantje commented 10 years ago

The correct value is calculated when an ping is received. Proof: ss 2014-04-04 at 11 59 28

ljunkie commented 10 years ago

Any news on this issue? I am noticing the same problem.

ljunkie commented 10 years ago

After some research, it seems the code is logging 1 as the availability to the DB, even when the availability is definitely < 1. The responsiveness seems to be correct, but whatever is calculating the availability has some bugs.