mirror of
https://github.com/transmission/transmission
synced 2025-02-23 06:30:38 +00:00
(trunk libT) #3388 "file completion percentage never updates" -- fixed.
This commit is contained in:
parent
78c1745c36
commit
e3e7683077
1 changed files with 1 additions and 1 deletions
|
@ -1183,7 +1183,7 @@ tr_torrentFiles( const tr_torrent * tor,
|
||||||
for( i=0; i<n; ++i, ++walk ) {
|
for( i=0; i<n; ++i, ++walk ) {
|
||||||
const uint64_t b = isSeed ? tor->info.files[i].length : fileBytesCompleted( tor, i );
|
const uint64_t b = isSeed ? tor->info.files[i].length : fileBytesCompleted( tor, i );
|
||||||
walk->bytesCompleted = b;
|
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 )
|
if( fileCount )
|
||||||
|
|
Loading…
Reference in a new issue