From bb003879034e65ed36f2c505f19fa91d6bc6471a Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Thu, 18 Feb 2010 02:20:43 +0000 Subject: [PATCH] fix the peers progress renderer --- deluge/ui/web/js/deluge-all/Deluge.Details.Peers.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/deluge/ui/web/js/deluge-all/Deluge.Details.Peers.js b/deluge/ui/web/js/deluge-all/Deluge.Details.Peers.js index 2eaa7600a..0c21da80e 100644 --- a/deluge/ui/web/js/deluge-all/Deluge.Details.Peers.js +++ b/deluge/ui/web/js/deluge-all/Deluge.Details.Peers.js @@ -42,8 +42,7 @@ Copyright: } function peerProgressRenderer(value) { var progress = (value * 100).toFixed(0); - var width = new Number(this.style.match(/\w+:\s*(\d+)\w+/)[1]).toFixed(0) - 8; - return Deluge.progressBar(progress, width, progress + '%'); + return Deluge.progressBar(progress, this.width - 8, progress + '%'); } function sort_address(value) { var d = value.match(/(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\:(\d+)/);