comparison 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
comparison
equal deleted inserted replaced
2345:2df32ac11b31 2346:dd1f0173f538
62 end 62 end
63 end, -0.5); 63 end, -0.5);
64 64
65 module:add_timer(14400, function (now) 65 module:add_timer(14400, function (now)
66 for host, time in pairs(notified_about_already) do 66 for host, time in pairs(notified_about_already) do
67 if time + 86400 > now then 67 if time + 86400 < now then
68 notified_about_already[host] = nil; 68 notified_about_already[host] = nil;
69 end 69 end
70 end 70 end
71 return 14400; 71 return 14400;
72 end) 72 end)