invoking -p 7 -r 30 was only removing passed jobs 30 days or older.
Signed-off-by: Dan Mick <dan.mick@redhat.com>
Walk through the archive_dir, calling the cleanup functions to process
directories that might be old enough
"""
- max_days = max(pass_days, remotes_days)
+ max_days = min(pass_days, remotes_days)
log.debug("Archive {archive} has {count} children".format(
archive=archive_dir, count=len(os.listdir(archive_dir))))
# Use full paths