Ignore:
Timestamp:
May 20, 2012, 2:14:59 PM (9 years ago)
Author:
jordan
Message:

(trunk libT) #4888: when scraping magnet links, don't send a left=0 argument to the tracker.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/announcer.c

    r13300 r13310  
    913913    req->down = tier->byteCounts[TR_ANN_DOWN];
    914914    req->corrupt = tier->byteCounts[TR_ANN_CORRUPT];
    915     req->left = tr_cpLeftUntilComplete( &tor->completion );
     915    req->leftUntilComplete = tr_torrentHasMetadata( tor )
     916            ? tor->info.totalSize - tr_cpHaveTotal( &tor->completion )
     917            : ~(uint64_t)0;
    916918    req->event = event;
    917919    req->numwant = event == TR_ANNOUNCE_EVENT_STOPPED ? 0 : NUMWANT;
Note: See TracChangeset for help on using the changeset viewer.