mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
use "1.0f" instead of "1f"
This commit is contained in:
@@ -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] = 0f;
|
||||
tab[i] = 0.0f;
|
||||
else if( isComplete || tr_cpPieceIsComplete( cp, piece ) )
|
||||
tab[i] = 1f;
|
||||
tab[i] = 1.0f;
|
||||
else
|
||||
tab[i] = (float)cp->completeBlocks[piece] / tr_torPieceCountBlocks( tor, piece );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user