Skip to content

Commit

Permalink
Ignore seeding torrents from ETA computation
Browse files Browse the repository at this point in the history
  • Loading branch information
PerfectSlayer committed May 14, 2015
1 parent 51327f5 commit 6bb41f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,9 @@ actionButton.etaUpdateCallback = function (downloads) {
var maxEta = 0;
// Check each download
for (var i = 0; i < downloads.length; i++) {
// Check download status
if (downloads[i].status !== 'downloading')
continue;
// Get download ETA
var eta = downloads[i].eta;
// Check max ETA
Expand Down

0 comments on commit 6bb41f1

Please sign in to comment.