remove obsolete MAX_PEERS in internal.h

This commit is contained in:
Charles Kerr 2007-09-28 16:00:43 +00:00
parent 1bdc481ee2
commit 92923a0236
2 changed files with 1 additions and 3 deletions

View File

@ -33,8 +33,6 @@
#define UNUSED
#endif
#define TR_MAX_PEER_COUNT 60
typedef enum { TR_NET_OK, TR_NET_ERROR, TR_NET_WAIT } tr_tristate_t;
#ifndef TRUE

View File

@ -1205,7 +1205,7 @@ shouldPeerBeDisconnected( Torrent * t, tr_peer * peer, int peerCount, int isSeed
/* when deciding whether or not to keep a peer, judge its responsiveness
on a sliding scale that's based on how many other peers are available */
relaxStrictnessIfFewerThanN =
(int)(((TR_MAX_PEER_COUNT * RELAX_RULES_PERCENTAGE) / 100.0) + 0.5);
(int)(((MAX_CONNECTED_PEERS_PER_TORRENT * RELAX_RULES_PERCENTAGE) / 100.0) + 0.5);
/* if we have >= relaxIfFewerThan, strictness is 100%.
if we have zero connections, strictness is 0% */