1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 01:27:28 +00:00

fix oops from previous commit. hi, titer

This commit is contained in:
Charles Kerr 2008-06-10 00:28:59 +00:00
parent 10302af22a
commit eb72d44d94

View file

@ -314,9 +314,9 @@ tr_cpGetAmountDone( const tr_completion * cp, float * tab, int tabCount )
const tr_piece_index_t piece = i * interval;
if( tor == NULL )
tab[i] = 0;
tab[i] = 0f;
else if( isComplete || tr_cpPieceIsComplete( cp, piece ) )
tab[i] = -1;
tab[i] = 1f;
else
tab[i] = (float)cp->completeBlocks[piece] / tr_torPieceCountBlocks( tor, piece );
}