Decrease reload interval of transmission-web-controlBy default transmission-web-control
forces a default reload interval of 5 seconds, and a minimum of 3 seconds.
As I’m not that into reducing bandwidth, I overrode the default behavior.
Default page
Here we’re gonna modify /usr/share/transmission/web/tr-web-control/script/system.js
.
The default value is set by system.config.reloadStep
, in milliseconds.
The minimum interval is set at #1249 (variable min
in function initToolbar
), in seconds.
Mobile page
Here file /usr/share/transmission/web/tr-web-control/script/system.mobile.js
needs to be changed.
The default value is specified by system.config.reloadStep
, in milliseconds.
Apply the changes
Note that these files are not used by Web UI. The ones actually used reside in /usr/share/transmission/web/tr-web-control/script/min
.
Preferably we should minimize these two .js
files and update the files in min/
, yet it also works if we simply:
123 cd /usr/share/transmission/web/tr-web-control/script/minln -sf ../system.js ./system.min.jsln -sf ../system.mobile.js ./system.mobile.min.js
By default transmission-web-control
forces a default reload interval of 5 seconds, and a minimum of 3 seconds.
As I’m not that into reducing bandwidth, I overrode the default behavior.
Default page
Here we’re gonna modify /usr/share/transmission/web/tr-web-control/script/system.js
.
The default value is set by system.config.reloadStep
, in milliseconds.
The minimum interval is set at #1249 (variable min
in function initToolbar
), in seconds.
Mobile page
Here file /usr/share/transmission/web/tr-web-control/script/system.mobile.js
needs to be changed.
The default value is specified by system.config.reloadStep
, in milliseconds.
Apply the changes
Note that these files are not used by Web UI. The ones actually used reside in /usr/share/transmission/web/tr-web-control/script/min
.
Preferably we should minimize these two .js
files and update the files in min/
, yet it also works if we simply:
1 2 3 | cd /usr/share/transmission/web/tr-web-control/script/min ln -sf ../system.js ./system.min.js ln -sf ../system.mobile.js ./system.mobile.min.js |