Changeset 13901


Ignore:
Timestamp:
Jan 30, 2013, 7:59:55 PM (8 years ago)
Author:
jordan
Message:

(libT) when announcing a magnet link for the first time, send 'left=0'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/announcer.c

    r13868 r13901  
    921921    req->leftUntilComplete = tr_torrentHasMetadata (tor)
    922922            ? tor->info.totalSize - tr_cpHaveTotal (&tor->completion)
    923             : ~ (uint64_t)0;
     923            : 0;
    924924    req->event = event;
    925925    req->numwant = event == TR_ANNOUNCE_EVENT_STOPPED ? 0 : NUMWANT;
     
    12071207    tr_session * session = announcer->session;
    12081208
     1209#if 0
     1210    fprintf (stderr, "ANNOUNCE: event %s isPartialSeed %d port %d key %d numwant %d"
     1211                     " up %"PRIu64" down %"PRIu64" corrupt %"PRIu64" left %"PRIu64
     1212                     " url [%s] tracker_id_str [%s] peer_id [%8.8s]\n",
     1213             tr_announce_event_get_string (request->event),
     1214             (int)request->partial_seed,
     1215             (int)request->port,
     1216             request->key,
     1217             request->numwant,
     1218             request->up,
     1219             request->down,
     1220             request->corrupt,
     1221             request->leftUntilComplete,
     1222             request->url,
     1223             request->tracker_id_str,
     1224             request->peer_id);
     1225#endif
     1226
    12091227    if (!memcmp (request->url, "http", 4))
    12101228        tr_tracker_http_announce (session, request, callback, callback_data);
Note: See TracChangeset for help on using the changeset viewer.