(trunk libT) #3388 "file completion percentage never updates" -- fixed.

This commit is contained in:
Charles Kerr 2010-07-10 21:30:37 +00:00
parent 78c1745c36
commit e3e7683077
1 changed files with 1 additions and 1 deletions

View File

@ -1183,7 +1183,7 @@ tr_torrentFiles( const tr_torrent * tor,
for( i=0; i<n; ++i, ++walk ) {
const uint64_t b = isSeed ? tor->info.files[i].length : fileBytesCompleted( tor, i );
walk->bytesCompleted = b;
walk->progress = tor->info.files[i].length > 0 ? ( b / tor->info.files[i].length ) : 1.0;
walk->progress = tor->info.files[i].length > 0 ? ( (float)b / tor->info.files[i].length ) : 1.0f;
}
if( fileCount )