(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:
Mitchell Livingston 2011-08-25 02:42:56 +00:00
parent cee1bfd139
commit ad5788feae
1 changed files with 2 additions and 2 deletions

View File

@ -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;