1
0
Fork 0
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:
Mitchell Livingston 2011-08-25 02:42:56 +00:00
parent cee1bfd139
commit ad5788feae

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;