Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
pmlogger_daily: 'compress archive data files after N days' seems to be off by one day. #99
Comments
|
pmlogger_daily is really intended to be run at the same time (00:10 by default) each day from cron. The -x (and -k and -t) options all use the modified time of the inode (not the name of the file) to determine which files to compress (or cull). So there is considerable scope for this to be "off by one (or more)", especially for interactive invocation at a random time with respect to the scheduled cron runs. I don't think there is a bug here and there is reasonable coverage of this functionality in the QA suite. I'll leave it to @sikadiamond to close the issue if (s)he agrees. |
sikadiamond commentedJul 25, 2016
As executed on todays date:
20160722.0.xz is het last compressed archive...
Now 20160723.0.xz is het last compressed archive, but one would expect with 0 days to have 20160724.0 compressed as well, unless I am missing something.