diff --git a/src/timeshift/timeshift_filemgr.c b/src/timeshift/timeshift_filemgr.c index fc097bc4..9260e81c 100644 --- a/src/timeshift/timeshift_filemgr.c +++ b/src/timeshift/timeshift_filemgr.c @@ -76,7 +76,7 @@ static void* timeshift_reaper_callback ( void *p ) tvhlog(LOG_ERR, "timeshift", "failed to remove %s [e=%s]", dpath, strerror(errno)); pthread_mutex_lock(×hift_size_lock); - assert(tsf->size >= timeshift_total_size); + assert(tsf->size <= timeshift_total_size); timeshift_total_size -= tsf->size; pthread_mutex_unlock(×hift_size_lock);