* i2psnark: Lower threshold for auto-stop

* Update: All updates via torrent
This commit is contained in:
zzz
2014-01-25 14:58:34 +00:00
parent 747d833392
commit 72bd1fe91b
2 changed files with 4 additions and 2 deletions

View File

@ -509,7 +509,7 @@ public class TrackerClient implements Runnable {
coordinator.getPeerCount() <= 0 && coordinator.getPeerCount() <= 0 &&
_util.getContext().clock().now() > _startedOn + 2*60*60*1000 && _util.getContext().clock().now() > _startedOn + 2*60*60*1000 &&
snark.getTotalLength() > 0 && snark.getTotalLength() > 0 &&
uploaded >= 2 * snark.getTotalLength()) { uploaded >= snark.getTotalLength() * 3 / 2) {
if (_log.shouldLog(Log.WARN)) if (_log.shouldLog(Log.WARN))
_log.warn("Auto stopping " + snark.getBaseName()); _log.warn("Auto stopping " + snark.getBaseName());
snark.setAutoStoppable(false); snark.setAutoStoppable(false);

View File

@ -95,7 +95,9 @@ public class ConsoleUpdateManager implements UpdateManager {
// For 0.9.8 update, only for dev builds and 30% more // For 0.9.8 update, only for dev builds and 30% more
// For 0.9.10 update, only for dev builds and 60% more // For 0.9.10 update, only for dev builds and 60% more
// Remove this for 100% // 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() { public static ConsoleUpdateManager getInstance() {