diff --git a/gtk/details.c b/gtk/details.c index c40d06241..d8053517e 100644 --- a/gtk/details.c +++ b/gtk/details.c @@ -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 )