0001-publisher-clean_nonces-delta-is-expressed-in-days-47.patch
wcs/qommon/publisher.py | ||
---|---|---|
585 | 585 |
for nonce in os.listdir(nonce_dir): |
586 | 586 |
nonce_path = os.path.join(nonce_dir, nonce) |
587 | 587 |
# we need delta so that os.utime in is_url_signed has time to update file timestamp |
588 |
if delta < now - os.stat(nonce_path)[8]: |
|
588 |
if delta < now - os.stat(nonce_path)[8] / (60 * 60 * 24):
|
|
589 | 589 |
os.unlink(nonce_path) |
590 | 590 |
finally: |
591 | 591 |
os.close(fd) |
592 |
- |