Changeset 13798


Ignore:
Timestamp:
Jan 17, 2013, 1:10:59 AM (8 years ago)
Author:
jordan
Message:

(libT) tweak getMaxAtomCount()

File:
1 edited

Legend:

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

    r13722 r13798  
    37143714getMaxAtomCount (const tr_torrent * tor)
    37153715{
    3716     const int n = tor->maxConnectedPeers;
    3717     /* approximate fit of the old jump discontinuous function */
    3718     if (n >= 55) return     n + 150;
    3719     if (n >= 20) return 2 * n + 95;
    3720     return               4 * n + 55;
     3716  return MIN (50, tor->maxConnectedPeers * 3);
    37213717}
    37223718
Note: See TracChangeset for help on using the changeset viewer.