From 41066aa306b95e281d981a25bbd687b5f6c73b94 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sat, 18 Jul 2009 01:04:27 +0000 Subject: [PATCH] (trunk gtk) #2286: wrong display of the percentage downloaded in the Properties --- gtk/details.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )