![]() |
| |||||||
| Register | FAQ | The Twelve Commandments | Members List | Calendar | Arcade | Find the Best VPN | Today's Posts | Search |
| Feature Requests & Bug Reports Is there anything you'd wish to see in Phex, or did you find some bugs? |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |
| ||||
| Quote:
Gregor wrote some very efficient and readable comparator code in src/main/java/phex/host/CaughtHostComparator.java src/main/java/phex/host/CaughtHost.java It first checks if the last connection succeeded. Then it checks if the Host is a DecentPhex. You can make Phex prefer Phex hosts at all times by reducing the requirements for being a DecentPhex in CaughtHost.java: just comment out the avgDailyUptime if clause in Code: public boolean isDecentPhexHost()
{
if ( !StringUtils.equals( vendor, "PHEX" ) )
{
return false;
}
if ( avgDailyUptime < 7200 )
{
return false;
}
if ( !isUltrapeer )
{
return false;
}
return true;
}
__________________ -> put this banner into your own signature! <- -- Erst im Spiel lebt der Mensch. Nur ludantaj homoj vivas. GnuFU.net - Gnutella For Users Draketo.de - Shortstories, Poems, Music and strange Ideas. |
| ||||
| Hi ToNneTje, Quote:
Which distribution do you use? (you need subversion, everything else should already be in place)
__________________ -> put this banner into your own signature! <- -- Erst im Spiel lebt der Mensch. Nur ludantaj homoj vivas. GnuFU.net - Gnutella For Users Draketo.de - Shortstories, Poems, Music and strange Ideas. |
![]() |
| |