proxmox-backup/proxmox-rest-server
Thomas Lamprecht 40853461d1 rest server: log rotation: fix off-by-one for max_days
The entries in a file go from oldest end-time in the first time to
newest end-time in the last line. So, just because the first line is
older than the cut-off time, the remaining one doesn't necessarily
have to be old enough too. What we can know for sure that older than
the current checked rotations of the task archive are definitively up
for deletion.

Another possibility would be to check the last line, but as scanning
backwards is more expensive/complex to do while only being an actual
improvement in a very specific edge case (it's more likely to have a
mixed time-cutoff vs. task-log-file boundary than that those are
aligned)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-07 12:58:32 +02:00
..
examples rest server: rust fmt 2022-04-06 16:55:39 +02:00
src rest server: log rotation: fix off-by-one for max_days 2022-04-07 12:58:32 +02:00
Cargo.toml bump proxmox-schema dep to 1.3 2022-03-04 09:50:21 +01:00