40853461d1
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> |
||
---|---|---|
.. | ||
examples | ||
src | ||
Cargo.toml |