mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-10 10:26:46 +00:00
Fix progress bar display
This commit is contained in:
parent
966fc6f64f
commit
ea75828f25
@ -51,7 +51,7 @@
|
|||||||
value = new Number(value);
|
value = new Number(value);
|
||||||
var progress = value;
|
var progress = value;
|
||||||
var text = r.data['state'] + ' ' + value.toFixed(2) + '%';
|
var text = r.data['state'] + ' ' + value.toFixed(2) + '%';
|
||||||
var width = new Number(p.style.match(/\w+:\s*(\d+)\w+/)[1]);
|
var width = new Number(this.style.match(/\w+:\s*(\d+)\w+/)[1]);
|
||||||
return Deluge.progressBar(value, width - 8, text);
|
return Deluge.progressBar(value, width - 8, text);
|
||||||
}
|
}
|
||||||
function seedsRenderer(value, p, r) {
|
function seedsRenderer(value, p, r) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user