mod_pubsub_hub/mod_pubsub_hub.lua
changeset 785 e781e63a49f4
parent 767 e5667f1da6bf
child 801 133ee88d19ae
--- 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)