summaryrefslogtreecommitdiff
path: root/src/libdcache/dcache_clean_expired.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2024-09-13 09:38:07 +0000
committerLaurent Bercot <ska@appnovation.com>2024-09-13 09:38:07 +0000
commitfb355e4200fcf98f36a4f3e1fbeb1e16b4761ee6 (patch)
treebf78792e9206e121607ad786432c0b60bbdcdc72 /src/libdcache/dcache_clean_expired.c
parent45c04a53fb9fbefe4dd86514c7563b4af1961dfb (diff)
downloadshibari-main.tar.xz
Push what I have for nowHEADmain
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libdcache/dcache_clean_expired.c')
-rw-r--r--src/libdcache/dcache_clean_expired.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libdcache/dcache_clean_expired.c b/src/libdcache/dcache_clean_expired.c
index d81bec8..7109e5c 100644
--- a/src/libdcache/dcache_clean_expired.c
+++ b/src/libdcache/dcache_clean_expired.c
@@ -14,7 +14,7 @@ void dcache_clean_expired (dcache *z, tai const *stamp)
{
uint32_t i ;
if (!avltree_min(&z->by_expire, &i)) break ;
- if (tai_less(stamp, &DNODE(z, i)->expire)) break ;
+ if (!tai_less(&DNODE(z, i)->expire, stamp)) break ;
dcache_delete(z, i) ;
}
}