mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 04:18:39 +00:00
(trunk) #1950: Add off-peak hour bandwidth limiting to libtransmission, rpc
This commit is contained in:
@@ -723,8 +723,8 @@ Transmission.prototype =
|
||||
var up_limit = prefs[RPC._UpSpeedLimit];
|
||||
var up_limited = prefs[RPC._UpSpeedLimited];
|
||||
|
||||
$('div.download_location input')[0].value = prefs['download-dir'];
|
||||
$('div.port input')[0].value = prefs['port'];
|
||||
$('div.download_location input')[0].value = prefs[RPC._DownloadDir];
|
||||
$('div.port input')[0].value = prefs[RPC._PeerPort];
|
||||
$('div.auto_start input')[0].checked = prefs[Prefs._AutoStart];
|
||||
$('input#limit_download')[0].checked = down_limited == 1;
|
||||
$('input#download_rate')[0].value = down_limit;
|
||||
|
||||
@@ -17,7 +17,7 @@ RPC._EncryptionRequired = 'required';
|
||||
RPC._UpSpeedLimit = 'speed-limit-up';
|
||||
RPC._DownSpeedLimit = 'speed-limit-down';
|
||||
RPC._DownloadDir = 'download-dir';
|
||||
RPC._PeerPort = 'port';
|
||||
RPC._PeerPort = 'peer-port';
|
||||
RPC._UpSpeedLimited = 'speed-limit-up-enabled';
|
||||
RPC._DownSpeedLimited = 'speed-limit-down-enabled';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user