(trunk daemon) #4094: "move 'Ratio Limit' to 'LIMITS & BANDWIDTH section'" -- fixed.
This commit is contained in:
parent
3933d84e1c
commit
db3282df47
|
@ -903,22 +903,6 @@ printDetails( tr_benc * top )
|
|||
strlratio( buf, j, i, sizeof( buf ) );
|
||||
printf( " Ratio: %s\n", buf );
|
||||
}
|
||||
if( tr_bencDictFindInt( t, "seedRatioMode", &i))
|
||||
{
|
||||
switch( i ) {
|
||||
case TR_RATIOLIMIT_GLOBAL:
|
||||
printf( " Ratio Limit: Default\n" );
|
||||
break;
|
||||
case TR_RATIOLIMIT_SINGLE:
|
||||
if( tr_bencDictFindReal( t, "seedRatioLimit", &d))
|
||||
printf( " Ratio Limit: %.2f\n", d );
|
||||
break;
|
||||
case TR_RATIOLIMIT_UNLIMITED:
|
||||
printf( " Ratio Limit: Unlimited\n" );
|
||||
break;
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
if( tr_bencDictFindInt( t, "corruptEver", &i ) )
|
||||
{
|
||||
strlsize( buf, i, sizeof( buf ) );
|
||||
|
@ -1024,6 +1008,22 @@ printDetails( tr_benc * top )
|
|||
else
|
||||
printf( "Unlimited\n" );
|
||||
}
|
||||
if( tr_bencDictFindInt( t, "seedRatioMode", &i))
|
||||
{
|
||||
switch( i ) {
|
||||
case TR_RATIOLIMIT_GLOBAL:
|
||||
printf( " Ratio Limit: Default\n" );
|
||||
break;
|
||||
case TR_RATIOLIMIT_SINGLE:
|
||||
if( tr_bencDictFindReal( t, "seedRatioLimit", &d))
|
||||
printf( " Ratio Limit: %.2f\n", d );
|
||||
break;
|
||||
case TR_RATIOLIMIT_UNLIMITED:
|
||||
printf( " Ratio Limit: Unlimited\n" );
|
||||
break;
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
if( tr_bencDictFindBool( t, "honorsSessionLimits", &boolVal ) )
|
||||
printf( " Honors Session Limits: %s\n", ( boolVal ? "Yes" : "No" ) );
|
||||
if( tr_bencDictFindInt ( t, "peer-limit", &i ) )
|
||||
|
|
Loading…
Reference in New Issue