Changeset 7248


Ignore:
Timestamp:
Dec 3, 2008, 1:22:24 AM (12 years ago)
Author:
charles
Message:

(libT) when picking peers to connect to, all other things being equal, pick peers from more reliable sources

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-mgr.c

    r7241 r7248  
    21252125        return a->time < b->time ? -1 : 1;
    21262126
     2127    /* all other things being equal, prefer peers whose
     2128     * information comes from a more reliable source */
     2129    if( a->from != b->from )
     2130        return a->from < b->from ? -1 : 1;
     2131
    21272132    return 0;
    21282133}
Note: See TracChangeset for help on using the changeset viewer.