fix the peers progress renderer

This commit is contained in:
Damien Churchill 2010-02-18 02:20:43 +00:00
parent ea365bf671
commit bb00387903
1 changed files with 1 additions and 2 deletions

View File

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