mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
(trunk daemon) #1981: Setting ratio on the command-line doesn't work`
This commit is contained in:
parent
6591c068df
commit
a2edfc290f
1 changed files with 7 additions and 7 deletions
|
@ -549,32 +549,32 @@ readargs( int argc,
|
|||
|
||||
case 950:
|
||||
tr_bencDictAddStr( &top, "method", "torrent-set" );
|
||||
tr_bencDictAddReal( args, "ratio-limit", atof(optarg) );
|
||||
tr_bencDictAddInt( args, "ratio-limit-mode", TR_RATIOLIMIT_SINGLE );
|
||||
tr_bencDictAddReal( args, "seedRatioLimit", atof(optarg) );
|
||||
tr_bencDictAddInt( args, "seedRatioMode", TR_RATIOLIMIT_SINGLE );
|
||||
addIdArg( args, id );
|
||||
break;
|
||||
|
||||
case 951:
|
||||
tr_bencDictAddStr( &top, "method", "torrent-set" );
|
||||
tr_bencDictAddInt( args, "ratio-limit-mode", TR_RATIOLIMIT_GLOBAL );
|
||||
tr_bencDictAddInt( args, "seedRatioMode", TR_RATIOLIMIT_GLOBAL );
|
||||
addIdArg( args, id );
|
||||
break;
|
||||
|
||||
case 952:
|
||||
tr_bencDictAddStr( &top, "method", "torrent-set" );
|
||||
tr_bencDictAddInt( args, "ratio-limit-mode", TR_RATIOLIMIT_UNLIMITED );
|
||||
tr_bencDictAddInt( args, "seedRatioMode", TR_RATIOLIMIT_UNLIMITED );
|
||||
addIdArg( args, id );
|
||||
break;
|
||||
|
||||
case 953:
|
||||
tr_bencDictAddStr( &top, "method", "session-set" );
|
||||
tr_bencDictAddReal( args, "ratio-limit", atof(optarg) );
|
||||
tr_bencDictAddBool( args, "ratio-limit-enabled", TRUE );
|
||||
tr_bencDictAddReal( args, "seedRatioLimit", atof(optarg) );
|
||||
tr_bencDictAddBool( args, "seedRatioLimited", TRUE );
|
||||
break;
|
||||
|
||||
case 954:
|
||||
tr_bencDictAddStr( &top, "method", "session-set" );
|
||||
tr_bencDictAddBool( args, "ratio-limit-enabled", FALSE );
|
||||
tr_bencDictAddBool( args, "seedRatioLimited", FALSE );
|
||||
break;
|
||||
|
||||
case TR_OPT_ERR:
|
||||
|
|
Loading…
Reference in a new issue