spathizilla/MyHome — pull request #8 by taufiqkh (2011-10-15 00:12:12+00:00)
Title: Cooldown should now work if estimated time left <= 0.

Cooldown time remaining is an estimate based on the number of seconds configured and the current time, while actual cooldown check is performed in the server loop. On a server under load, the cooldown time will often expire well before the server has not yet processed it, leading to cases where estimated time left = 0 for several seconds. This fix cancels the cooldown if the calculated time left <= 0.