]> granicus.if.org Git - transmission/commitdiff
(daemon) in remote's `info' feature, bound the verified & download progress from...
authorCharles Kerr <charles@transmissionbt.com>
Thu, 10 Jul 2008 18:16:21 +0000 (18:16 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Thu, 10 Jul 2008 18:16:21 +0000 (18:16 +0000)
daemon/remote.c

index c5fcd42e20766c3613388303db09afbba03c41cd..731fc1fb01861c5c0d9154ef6cd84a4c72151f5a 100644 (file)
@@ -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 );
             }