~edwargix/git.sr.ht

b063dbda6eac780045180030878d27ad39498ec4 — Drew DeVault 1 year, 1 month ago b6b184c
gitsrht-periodic: fix non-integer randrange use
1 files changed, 1 insertions(+), 1 deletions(-)

M gitsrht-periodic
M gitsrht-periodic => gitsrht-periodic +1 -1
@@ 65,7 65,7 @@ def gc_s3():
    if not gr.object_storage_enabled:
        return
    # Once a weekish
    if random.randrange(0, 7 * 24 * 60 / 20) != 0:
    if random.randrange(0, int(math.ceil(7 * 24 * 60 / 20))) != 0:
       return
    prefix = os.path.join(gr.s3_prefix, "artifacts")
    minio = Minio(gr.s3_upstream, access_key=gr.s3_access_key,