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+)/);