mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-14 13:34:21 +00:00
show the max_* (download, upload, num_connections) in the status bar
This commit is contained in:
parent
5421ea77a6
commit
2574e05ad4
@ -35,9 +35,9 @@ Deluge.Widgets.StatusBar = new Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
update: function(stats) {
|
update: function(stats) {
|
||||||
this.connections.set('text', stats.num_connections);
|
this.connections.set('text', stats.num_connections + ' (' + stats.max_num_connections + ')');
|
||||||
this.downspeed.set('text', stats.download_rate.toSpeed());
|
this.downspeed.set('text', stats.download_rate.toSpeed() + ' (' + stats.max_download + ' KiB/s)');
|
||||||
this.upspeed.set('text', stats.upload_rate.toSpeed());
|
this.upspeed.set('text', stats.upload_rate.toSpeed() + ' (' + stats.max_upload + ' KiB/s)');
|
||||||
this.dht.set('text', stats.dht_nodes);
|
this.dht.set('text', stats.dht_nodes);
|
||||||
this.free_space.set('text', stats.free_space.toBytes());
|
this.free_space.set('text', stats.free_space.toBytes());
|
||||||
if (stats.has_incoming_connections) {
|
if (stats.has_incoming_connections) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user