5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 18:56:21 +00:00

empezar a recolectar estadísticas cuando se inicia el panel

This commit is contained in:
f 2021-10-09 18:28:38 -03:00
parent ec775847b9
commit 356db85465

View file

@ -48,6 +48,11 @@ module Sutty
EmailAddress::Config.error_messages translations.transform_keys(&:to_s), locale.to_s
end
# Empezar el recolector de datos en la próxima hora
now = Time.now
next_hour = now.at_beginning_of_hour + 1.hour + 1.minute
StatCollectionJob.perform_in(next_hour - now, once: false)
end
end
end