I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 57875586 authored by zzz's avatar zzz
Browse files

reduce same-country bonus, less countries

parent ad8ec011
Branches
Tags
No related merge requests found
......@@ -22,7 +22,7 @@ class CapacityCalculator {
// crappy peers start at 1 and the base is 5.
private static final double BONUS_NEW = 0.85;
private static final double BONUS_ESTABLISHED = 0.65;
private static final double BONUS_SAME_COUNTRY = 0.25;
private static final double BONUS_SAME_COUNTRY = 0.10;
private static final double BONUS_XOR = .25;
private static final double PENALTY_UNREACHABLE = 2;
......
......@@ -76,7 +76,7 @@ public class PeerProfile {
private static final Set<String> _bigCountries = new HashSet();
static {
String[] big = new String[] {"ca", "fi", "fr", "de", "ru", "se", "ua", "gb", "us" };
String[] big = new String[] { "fr", "de", "ru", "ua", "us" };
_bigCountries.addAll(Arrays.asList(big));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment