mirror of
https://github.com/transmission/transmission
synced 2024-12-27 01:57:52 +00:00
remove obsolete MAX_PEERS in internal.h
This commit is contained in:
parent
1bdc481ee2
commit
92923a0236
2 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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% */
|
||||
|
|
Loading…
Reference in a new issue