alphagov/whitehall — pull request #1446 by alext (2014-04-30 10:58:38+00:00)
Title: Prevent Whitehall::Wait from oversleeping.

This was sleeping for too long because `time_to_sleep` wasn't being updated on each loop iteration, and `time_slept` was being compared with `<` not `<=`. The result was that most of the time it would sleep twice
as long as it was expected to, resulting in a c. 2 minute delay in scheduled publishing.