]> granicus.if.org Git - transmission/commitdiff
(trunk web) for paused seeds, for the entire progress bar to be gray instead of only...
authorMitchell Livingston <livings124@transmissionbt.com>
Thu, 25 Aug 2011 02:42:56 +0000 (02:42 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Thu, 25 Aug 2011 02:42:56 +0000 (02:42 +0000)
web/javascript/torrent-row.js

index 55774aa1d6bb10c84b21c8687608e904669af757..a393d74b88408abeb9227b697dda44d1bf2e625e 100644 (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;