From: Mitchell Livingston Date: Thu, 25 Aug 2011 02:42:56 +0000 (+0000) Subject: (trunk web) for paused seeds, for the entire progress bar to be gray instead of only... X-Git-Tag: 2.40b1~174 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad5788feaef089b976080adc3e4eb54d2ea3a903;p=transmission (trunk web) for paused seeds, for the entire progress bar to be gray instead of only the finished-seeding section --- diff --git a/web/javascript/torrent-row.js b/web/javascript/torrent-row.js index 55774aa1d..a393d74b8 100644 --- a/web/javascript/torrent-row.js +++ b/web/javascript/torrent-row.js @@ -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;