Changeset 11707


Ignore:
Timestamp:
Jan 19, 2011, 12:07:59 AM (11 years ago)
Author:
jordan
Message:

#3519 "webseeds don't work" -- the `active' filter in the web client didn't test for webseed activity.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/javascript/torrent.js

    r11305 r11707  
    232232        id: function() { return this._id; },
    233233        isActiveFilter: function() { return this.peersGettingFromUs() > 0
    234                                         || this.peersSendingToUs() > 0
    235                                         || this.state() == Torrent._StatusChecking; },
     234                                         || this.peersSendingToUs() > 0
     235                                         || this.webseedsSendingToUs() > 0
     236                                         || this.state() == Torrent._StatusChecking; },
    236237        isActive: function() { return this.state() != Torrent._StatusPaused; },
    237238        isDownloading: function() { return this.state() == Torrent._StatusDownloading; },
     
    239240        isSeeding: function() { return this.state() == Torrent._StatusSeeding; },
    240241        name: function() { return this._name; },
     242        webseedsSendingToUs: function() { return this._webseeds_sending_to_us; },
    241243        peersSendingToUs: function() { return this._peers_sending_to_us; },
    242244        peersGettingFromUs: function() { return this._peers_getting_from_us; },
     
    396398                this._peers_getting_from_us   = data.peersGettingFromUs;
    397399                this._peers_sending_to_us     = data.peersSendingToUs;
     400                this._webseeds_sending_to_us  = data.webseedsSendingToUs;
    398401                this._sizeWhenDone            = data.sizeWhenDone;
    399402                this._recheckProgress         = data.recheckProgress;
Note: See TracChangeset for help on using the changeset viewer.