mirror of
https://github.com/transmission/transmission
synced 2025-03-19 02:05:32 +00:00
(trunk web) for paused seeds, for the entire progress bar to be gray instead of only the finished-seeding section
This commit is contained in:
parent
cee1bfd139
commit
ad5788feae
1 changed files with 2 additions and 2 deletions
|
@ -17,12 +17,12 @@ TorrentRendererHelper.getProgressInfo = function(controller, t)
|
|||
{
|
||||
var seed_ratio_limit = t.seedRatioLimit(controller);
|
||||
|
||||
var pct = 0;
|
||||
var pct;
|
||||
if (t.needsMetaData())
|
||||
pct = t.getMetadataPercentComplete() * 100;
|
||||
else if (!t.isDone())
|
||||
pct = Math.round(t.getPercentDone() * 100);
|
||||
else if (seed_ratio_limit > 0)
|
||||
else if (seed_ratio_limit > 0 && !t.isStopped())
|
||||
pct = Math.round(t.getUploadRatio() * 100 / seed_ratio_limit);
|
||||
else
|
||||
pct = 100;
|
||||
|
|
Loading…
Add table
Reference in a new issue