reduce same-country bonus, less countries

This commit is contained in:
zzz
2013-10-19 22:10:03 +00:00
parent ad8ec011d0
commit 57875586cf
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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));
}