Changeset 3225


Ignore:
Timestamp:
Sep 28, 2007, 4:00:43 PM (14 years ago)
Author:
charles
Message:

remove obsolete MAX_PEERS in internal.h

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/internal.h

    r3220 r3225  
    3333#define UNUSED
    3434#endif
    35 
    36 #define TR_MAX_PEER_COUNT 60
    3735
    3836typedef enum { TR_NET_OK, TR_NET_ERROR, TR_NET_WAIT } tr_tristate_t;
  • trunk/libtransmission/peer-mgr.c

    r3197 r3225  
    12061206       on a sliding scale that's based on how many other peers are available */
    12071207    relaxStrictnessIfFewerThanN =
    1208         (int)(((TR_MAX_PEER_COUNT * RELAX_RULES_PERCENTAGE) / 100.0) + 0.5);
     1208        (int)(((MAX_CONNECTED_PEERS_PER_TORRENT * RELAX_RULES_PERCENTAGE) / 100.0) + 0.5);
    12091209
    12101210    /* if we have >= relaxIfFewerThan, strictness is 100%.
Note: See TracChangeset for help on using the changeset viewer.