Class CapacityCalculator

java.lang.Object
net.i2p.router.peermanager.CapacityCalculator

class CapacityCalculator extends Object
Estimate how many of our tunnels the peer can join per hour.
  • Field Details

    • PROP_COUNTRY_BONUS

      public static final String PROP_COUNTRY_BONUS
      See Also:
    • GROWTH_FACTOR

      static final long GROWTH_FACTOR
      used to adjust each period so that we keep trying to expand the peer's capacity
      See Also:
  • Constructor Details

    • CapacityCalculator

      CapacityCalculator()
  • Method Details

    • calc

      public static double calc(PeerProfile profile)