From: Charles Kerr Date: Thu, 10 Jul 2008 18:16:21 +0000 (+0000) Subject: (daemon) in remote's `info' feature, bound the verified & download progress from... X-Git-Tag: 1.31~125 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=35d9c9b1c5f7b3304507322721a6d7a5a4ad5f26;p=transmission (daemon) in remote's `info' feature, bound the verified & download progress from [0..100] instead of [0..1] --- diff --git a/daemon/remote.c b/daemon/remote.c index c5fcd42e2..731fc1fb0 100644 --- a/daemon/remote.c +++ b/daemon/remote.c @@ -409,13 +409,13 @@ printDetails( tr_benc * top ) if( isVerifying( i ) && tr_bencDictFindStr( t, "recheckProgress", &str ) ) - printf( " Verified Progress: %.2f%%\n", atof(str) ); + printf( " Verified Progress: %.2f%%\n", 100.0*atof(str) ); } if( tr_bencDictFindInt( t, "sizeWhenDone", &i ) && tr_bencDictFindInt( t, "leftUntilDone", &j ) ) { - strlratio( buf, (i-j), i, sizeof( buf ) ); + strlratio( buf, 100.0*(i-j), i, sizeof( buf ) ); printf( " Download Progress: %s%%\n", buf ); }