diff options
-rw-r--r-- | src/cache.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cache.c b/src/cache.c index 299d952..3b98c1e 100644 --- a/src/cache.c +++ b/src/cache.c @@ -107,8 +107,10 @@ drop_lre( while (iter < cache->used) { item = itemat(cache, iter); hit = item->hit; - if (hit < hmin) + if (hit <= hmin) { found = iter; + hmin = hit; + } iter += item->length; } if (found < cache->used) |