]> granicus.if.org Git - transmission/commitdiff
(trunk web) for non-active seeds (paused or queued), draw the whole bar gray (r12731...
authorMitchell Livingston <livings124@transmissionbt.com>
Thu, 25 Aug 2011 03:27:33 +0000 (03:27 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Thu, 25 Aug 2011 03:27:33 +0000 (03:27 +0000)
web/javascript/torrent-row.js

index a393d74b88408abeb9227b697dda44d1bf2e625e..03fa19dde83145e6864079d9c1d3a3e31bdcaed1 100644 (file)
@@ -22,7 +22,7 @@ TorrentRendererHelper.getProgressInfo = function(controller, t)
                pct = t.getMetadataPercentComplete() * 100;
        else if (!t.isDone())
                pct = Math.round(t.getPercentDone() * 100);
-       else if (seed_ratio_limit > 0 && !t.isStopped())
+       else if (seed_ratio_limit > 0 && t.isSeeding()) // don't split up the bar if paused or queued
                pct = Math.round(t.getUploadRatio() * 100 / seed_ratio_limit);
        else
                pct = 100;