mirror of
https://github.com/transmission/transmission
synced 2025-01-31 19:34:05 +00:00
(rpc) #1261: session-get's speed-limit-down & speed-limit-up fields have the wrong units
This commit is contained in:
parent
c1af45ab28
commit
e830fa23d4
1 changed files with 2 additions and 2 deletions
|
@ -722,11 +722,11 @@ sessionGet( tr_handle * h,
|
|||
tr_bencDictAddInt( d, "port-forwarding-enabled",
|
||||
tr_sessionIsPortForwardingEnabled( h ) );
|
||||
tr_bencDictAddInt( d, "speed-limit-up",
|
||||
tr_sessionGetSpeedLimit( h, TR_UP ) * 1024 );
|
||||
tr_sessionGetSpeedLimit( h, TR_UP ) );
|
||||
tr_bencDictAddInt( d, "speed-limit-up-enabled",
|
||||
tr_sessionIsSpeedLimitEnabled( h, TR_UP ) );
|
||||
tr_bencDictAddInt( d, "speed-limit-down",
|
||||
tr_sessionGetSpeedLimit( h, TR_DOWN ) * 1024 );
|
||||
tr_sessionGetSpeedLimit( h, TR_DOWN ) );
|
||||
tr_bencDictAddInt( d, "speed-limit-down-enabled",
|
||||
tr_sessionIsSpeedLimitEnabled( h, TR_DOWN ) );
|
||||
switch( tr_sessionGetEncryption( h ) )
|
||||
|
|
Loading…
Reference in a new issue