Changeset 7601


Ignore:
Timestamp:
Jan 3, 2009, 11:11:29 PM (12 years ago)
Author:
charles
Message:

(trunk libT) tr_torrentStat() speedups

Location:
trunk/libtransmission
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r7591 r7601  
    739739
    740740    tc = tor->tracker;
    741     ti = tr_trackerGetAddress( tor->tracker );
     741    ti = tr_trackerGetAddress( tor->tracker, tor );
    742742    s->announceURL = ti ? ti->announce : NULL;
    743743    s->scrapeURL   = ti ? ti->scrape   : NULL;
  • trunk/libtransmission/tracker.c

    r7597 r7601  
    157157    const tr_torrent * torrent;
    158158
    159     if( ( torrent = tr_torrentFindFromHash( t->session, t->hash ) ) )
     159    if( ( torrent = tr_torrentFindFromId( t->session, t->torrentId ) ) )
    160160        return getCurrentAddressFromTorrent( t, torrent );
    161161    return NULL;
     
    11091109
    11101110const tr_tracker_info *
    1111 tr_trackerGetAddress( tr_tracker * t )
    1112 {
    1113     return getCurrentAddress( t );
     1111tr_trackerGetAddress( tr_tracker * t, const tr_torrent * torrent )
     1112{
     1113    return getCurrentAddressFromTorrent( t, torrent );
    11141114}
    11151115
  • trunk/libtransmission/tracker.h

    r7533 r7601  
    8686void                    tr_trackerChangeMyPort( struct tr_tracker * );
    8787
    88 const tr_tracker_info * tr_trackerGetAddress( struct tr_tracker * );
     88const tr_tracker_info * tr_trackerGetAddress( struct tr_tracker *, const tr_torrent * tor );
    8989
    9090int                     tr_trackerCanManualAnnounce( const struct tr_tracker * );
Note: See TracChangeset for help on using the changeset viewer.