From fbc7cde71862d2042999ebe4189a709ce244aced Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Mon, 21 Apr 2008 00:04:41 +0000 Subject: [PATCH] tweak the value of haveDone as per BentMyWookie's suggestion --- libtransmission/completion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/completion.c b/libtransmission/completion.c index d5daded8f..c1c2f30d3 100644 --- a/libtransmission/completion.c +++ b/libtransmission/completion.c @@ -108,7 +108,7 @@ tr_cpEnsureDoneValid( const tr_completion * ccp ) cp->doneDirty = FALSE; for( i=0; ipieceCount; ++i ) { - if( !info->pieces[i].dnd ) { + if( tr_cpPieceIsComplete( ccp, i ) || !info->pieces[i].dnd ) { total += info->pieceSize; have += cp->completeBlocks[ i ]; }