From e3e768307794bc1ff056bd88777229084604ae39 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sat, 10 Jul 2010 21:30:37 +0000 Subject: [PATCH] (trunk libT) #3388 "file completion percentage never updates" -- fixed. --- libtransmission/torrent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index 5664368c8..00daafe72 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -1183,7 +1183,7 @@ tr_torrentFiles( const tr_torrent * tor, for( i=0; iinfo.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 )