diff mod_watchuntrusted/mod_watchuntrusted.lua @ 2346:dd1f0173f538

mod_watchuntrusted: Fix backwards time comparison
author Kim Alvefur <zash@zash.se>
date Sun, 06 Nov 2016 21:02:21 +0100
parents 4c4a4191b825
children 9a3e51f348fe
line wrap: on
line diff
--- 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