mod_watchuntrusted: Fix backwards time comparison
authorKim Alvefur <zash@zash.se>
Sun, 06 Nov 2016 21:02:21 +0100
changeset 2350 dd1f0173f538
parent 2349 2df32ac11b31
child 2351 a47520a2c59d
mod_watchuntrusted: Fix backwards time comparison
mod_watchuntrusted/mod_watchuntrusted.lua
--- a/mod_watchuntrusted/mod_watchuntrusted.lua	Fri Nov 04 22:35:09 2016 +0100
+++ b/mod_watchuntrusted/mod_watchuntrusted.lua	Sun Nov 06 21:02:21 2016 +0100
@@ -64,7 +64,7 @@
 
 module:add_timer(14400, function (now)
 	for host, time in pairs(notified_about_already) do
-		if time + 86400 > now then
+		if time + 86400 < now then
 			notified_about_already[host] = nil;
 		end
 	end