mirror of
https://github.com/transmission/transmission
synced 2024-12-24 08:43:27 +00:00
(trunk gtk) #2286: wrong display of the percentage downloaded in the Properties
This commit is contained in:
parent
5d9859df0b
commit
41066aa306
1 changed files with 1 additions and 1 deletions
|
@ -791,7 +791,7 @@ refreshInfo( struct DetailsImpl * di, tr_torrent ** torrents, int n )
|
|||
str = none;
|
||||
else {
|
||||
char unver[64], total[64];
|
||||
const double ratio = 100.0 * ( leftUntilDone ? ( haveValid + haveUnchecked ) / leftUntilDone : 1 );
|
||||
const double ratio = 100.0 * ( leftUntilDone ? ( haveValid + haveUnchecked ) / sizeWhenDone : 1 );
|
||||
tr_strlsize( total, haveUnchecked + haveValid, sizeof( total ) );
|
||||
tr_strlsize( unver, haveUnchecked, sizeof( unver ) );
|
||||
if( haveUnchecked )
|
||||
|
|
Loading…
Reference in a new issue