aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-28 03:53:24 -0400
committerCraig Jennings <c@cjennings.net>2026-06-28 03:53:24 -0400
commitec38418d6d3eb4342363af1714f0073a74d52fbc (patch)
tree1327072f95de36f0577e114fd259c8d064426619 /scripts
parent944a52f0e33087dafba383edb3d97ec19a06d361 (diff)
downloademacs-wttrin-ec38418d6d3eb4342363af1714f0073a74d52fbc.tar.gz
emacs-wttrin-ec38418d6d3eb4342363af1714f0073a74d52fbc.zip
fix: always evict at least one cache entry when over max
wttrin--cleanup-cache-if-needed removed floor(count * 0.20) entries, which is 0 for a small cache (e.g. two entries at max one), so the cache could sit over its advertised maximum indefinitely. It now removes at least one whenever it is over.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions