From 2574e05ad4d7ca1be2fe893c499648c2d5f64737 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Wed, 8 Oct 2008 02:09:29 +0000 Subject: [PATCH] show the max_* (download, upload, num_connections) in the status bar --- deluge/ui/webui/templates/ajax/static/js/deluge-bars.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deluge/ui/webui/templates/ajax/static/js/deluge-bars.js b/deluge/ui/webui/templates/ajax/static/js/deluge-bars.js index 828360d8a..77ec8dded 100644 --- a/deluge/ui/webui/templates/ajax/static/js/deluge-bars.js +++ b/deluge/ui/webui/templates/ajax/static/js/deluge-bars.js @@ -35,9 +35,9 @@ Deluge.Widgets.StatusBar = new Class({ }, update: function(stats) { - this.connections.set('text', stats.num_connections); - this.downspeed.set('text', stats.download_rate.toSpeed()); - this.upspeed.set('text', stats.upload_rate.toSpeed()); + this.connections.set('text', stats.num_connections + ' (' + stats.max_num_connections + ')'); + this.downspeed.set('text', stats.download_rate.toSpeed() + ' (' + stats.max_download + ' KiB/s)'); + this.upspeed.set('text', stats.upload_rate.toSpeed() + ' (' + stats.max_upload + ' KiB/s)'); this.dht.set('text', stats.dht_nodes); this.free_space.set('text', stats.free_space.toBytes()); if (stats.has_incoming_connections) {