mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
fix oops from previous commit. hi, titer
This commit is contained in:
parent
10302af22a
commit
eb72d44d94
1 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue