forked from I2P_Developers/i2p.i2p
* i2psnark: Lower threshold for auto-stop
* Update: All updates via torrent
This commit is contained in:
@ -509,7 +509,7 @@ public class TrackerClient implements Runnable {
|
||||
coordinator.getPeerCount() <= 0 &&
|
||||
_util.getContext().clock().now() > _startedOn + 2*60*60*1000 &&
|
||||
snark.getTotalLength() > 0 &&
|
||||
uploaded >= 2 * snark.getTotalLength()) {
|
||||
uploaded >= snark.getTotalLength() * 3 / 2) {
|
||||
if (_log.shouldLog(Log.WARN))
|
||||
_log.warn("Auto stopping " + snark.getBaseName());
|
||||
snark.setAutoStoppable(false);
|
||||
|
@ -95,7 +95,9 @@ public class ConsoleUpdateManager implements UpdateManager {
|
||||
// For 0.9.8 update, only for dev builds and 30% more
|
||||
// For 0.9.10 update, only for dev builds and 60% more
|
||||
// Remove this for 100%
|
||||
_allowTorrent = RouterVersion.BUILD != 0 || _context.random().nextInt(100) < 60;
|
||||
//_allowTorrent = RouterVersion.BUILD != 0 || _context.random().nextInt(100) < 60;
|
||||
// Finally, for 0.9.12, 18 months later...
|
||||
_allowTorrent = true;
|
||||
}
|
||||
|
||||
public static ConsoleUpdateManager getInstance() {
|
||||
|
Reference in New Issue
Block a user