Skip to content

Commit

Permalink
widen cache refresh range
Browse files Browse the repository at this point in the history
  • Loading branch information
pudo committed Mar 7, 2025
1 parent e0aa581 commit 636f66e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nomenklatura/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class CacheValue:


def randomize_cache(days: int) -> timedelta:
min_cache = max(1, math.ceil(days * 0.7))
min_cache = max(1, math.ceil(days * 0.5))
max_cache = math.ceil(days * 1.3)
return timedelta(days=randint(min_cache, max_cache))

Expand Down

0 comments on commit 636f66e

Please sign in to comment.