timeshift: fix silly logic error in assert() call.

This commit is contained in:
Adam Sutton 2013-01-15 17:35:23 +00:00
parent d82362ac73
commit c1312e160a

View file

@ -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(&timeshift_size_lock);
assert(tsf->size >= timeshift_total_size);
assert(tsf->size <= timeshift_total_size);
timeshift_total_size -= tsf->size;
pthread_mutex_unlock(&timeshift_size_lock);