author | Kim Alvefur <zash@zash.se> |
Tue, 07 Aug 2012 01:51:42 +0200 | |
changeset 785 | e781e63a49f4 |
parent 784 | c6f1427da79d |
child 786 | e318a341d332 |
--- a/mod_pubsub_hub/mod_pubsub_hub.lua Mon Aug 06 14:48:26 2012 +0000 +++ b/mod_pubsub_hub/mod_pubsub_hub.lua Tue Aug 07 01:51:42 2012 +0200 @@ -183,7 +183,7 @@ purge = false; end end - return now - m_max(next_check - min_lease, min_lease); + return m_max((now - next_check) - min_lease, min_lease); end local function on_notify(subscription, content)