show the max_* (download, upload, num_connections) in the status bar

This commit is contained in:
Damien Churchill 2008-10-08 02:09:29 +00:00
parent 5421ea77a6
commit 2574e05ad4

View File

@ -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) {