# HG changeset patch # User Matthew Wild # Date 1710241001 0 # Node ID ca62f9984f4b39d6a88c55b72bb30f88050c5c00 # Parent 9f2816287556aee1477b811c313b698384b7e133 mod_measure_active_users: Switch to mod_cron for scheduling diff -r 9f2816287556 -r ca62f9984f4b mod_measure_active_users/mod_measure_active_users.lua --- a/mod_measure_active_users/mod_measure_active_users.lua Tue Mar 12 10:41:55 2024 +0000 +++ b/mod_measure_active_users/mod_measure_active_users.lua Tue Mar 12 10:56:41 2024 +0000 @@ -41,8 +41,10 @@ measure_d1(active_d1); measure_d7(active_d7); measure_d30(active_d30); - - return 3600 + (300*math.random()); end +-- Schedule at startup module:add_timer(15, update_calculations); + +-- Recalculate hourly +module:hourly(update_calculations);