Kim Alvefur <zash@zash.se> [Fri, 03 Dec 2021 09:05:41 +0100] rev 12006
mod_cron: Add a 'weekly' job frequency
Kim Alvefur <zash@zash.se> [Fri, 03 Dec 2021 09:01:09 +0100] rev 12005
mod_cron: Initialize timestamp of new tasks to start of period
Makes it more generic so new periods (e.g. weekly etc) can be added
easily.
Kim Alvefur <zash@zash.se> [Fri, 03 Dec 2021 08:57:40 +0100] rev 12004
mod_cron: Follow convention of imports at the top
Kim Alvefur <zash@zash.se> [Fri, 03 Dec 2021 08:21:29 +0100] rev 12003
mod_http_file_share: Keep track of total storage use across restarts
The value needs to be known in order to determine if additional uploads
can be accepted.
Kim Alvefur <zash@zash.se> [Fri, 03 Dec 2021 08:16:18 +0100] rev 12002
mod_http_file_share: Fix measuring total storage use before it was known
Passing nil to the metrics system causes errors later.
Kim Alvefur <zash@zash.se> [Fri, 03 Dec 2021 01:02:02 +0100] rev 12001
mod_smacks: Refactor, simplify, optimize
Since reply.attr.to will be the .attr.from of the input we can check
this earlier and avoid constructing the reply at all.
Kim Alvefur <zash@zash.se> [Fri, 03 Dec 2021 00:59:23 +0100] rev 12000
mod_smacks: Use function to construct error reply
Did error_reply() not exist when mod_smacks was first created?
Kim Alvefur <zash@zash.se> [Fri, 03 Dec 2021 00:11:31 +0100] rev 11999
mod_cron: Initialize daily tasks so they run around midnight UTC
Eventually the goal is to have daily tasks run while there is little
activity, but that will vary with the server and the usage patterns of
its users. This is a start anyway.
Kim Alvefur <zash@zash.se> [Tue, 30 Nov 2021 00:55:54 +0100] rev 11998
mod_http_file_share: Keep global storage use accurate longer.
Merging those loops removes the miscounting that would occur in case a
file could not be deleted, so no need to limit it to that case.
Kim Alvefur <zash@zash.se> [Tue, 30 Nov 2021 00:53:22 +0100] rev 11997
mod_http_file_share: Merge file expiry loops
Not sure what the benefit of two separate loops was, perhaps reduced
memory usage by allowing archive query state to be garbage collected
before moving on to deleting files. Never measured so probably not so.
This simplifies a bit.