Package net.i2p.router.peermanager
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 Summary
Fields Modifier and Type Field Description (package private) static long
GROWTH_FACTOR
used to adjust each period so that we keep trying to expand the peer's capacitystatic String
PROP_COUNTRY_BONUS
-
Constructor Summary
Constructors Constructor Description CapacityCalculator()
-
Method Summary
Modifier and Type Method Description static double
calc(PeerProfile profile)
-
Field Details
-
PROP_COUNTRY_BONUS
- See Also:
- Constant Field Values
-
GROWTH_FACTOR
static final long GROWTH_FACTORused to adjust each period so that we keep trying to expand the peer's capacity- See Also:
- Constant Field Values
-
-
Constructor Details
-
CapacityCalculator
CapacityCalculator()
-
-
Method Details