forked from I2P_Developers/i2p.i2p
Log tweaks and minor cleanups, -15
This commit is contained in:
@@ -130,7 +130,7 @@ public class InNetMessagePool implements Service {
|
||||
_log.info("Received inbound "
|
||||
+ " with id " + messageBody.getUniqueId()
|
||||
+ " expiring on " + exp
|
||||
+ " of type " + messageBody.getClass().getName());
|
||||
+ " of type " + messageBody.getClass().getSimpleName());
|
||||
|
||||
//if (messageBody instanceof DataMessage) {
|
||||
// _context.statManager().getStatLog().addData(fromRouterHash.toBase64().substring(0,6), "udp.floodDataReceived", 1, 0);
|
||||
@@ -185,7 +185,7 @@ public class InNetMessagePool implements Service {
|
||||
|
||||
if (_log.shouldLog(Log.DEBUG))
|
||||
_log.debug("Add message to the inNetMessage pool - builder: " + builder
|
||||
+ " message class: " + messageBody.getClass().getName());
|
||||
+ " message class: " + messageBody.getClass().getSimpleName());
|
||||
|
||||
if (builder != null) {
|
||||
Job job = builder.createJob(messageBody, fromRouter,
|
||||
|
@@ -18,7 +18,7 @@ public class RouterVersion {
|
||||
/** deprecated */
|
||||
public final static String ID = "Monotone";
|
||||
public final static String VERSION = CoreVersion.VERSION;
|
||||
public final static long BUILD = 14;
|
||||
public final static long BUILD = 15;
|
||||
|
||||
/** for example "-test" */
|
||||
public final static String EXTRA = "";
|
||||
|
@@ -250,7 +250,8 @@ public class TunnelPool {
|
||||
TunnelInfo rv = null;
|
||||
synchronized (_tunnels) {
|
||||
if (!_tunnels.isEmpty()) {
|
||||
Collections.sort(_tunnels, new TunnelInfoComparator(closestTo, avoidZeroHop));
|
||||
if (_tunnels.size() > 1)
|
||||
Collections.sort(_tunnels, new TunnelInfoComparator(closestTo, avoidZeroHop));
|
||||
for (TunnelInfo info : _tunnels) {
|
||||
if (info.getExpiration() > _context.clock().now()) {
|
||||
rv = info;
|
||||
|
@@ -271,9 +271,6 @@ public class TunnelPoolManager implements TunnelManagerFacade {
|
||||
|
||||
/** @return number of inbound exploratory tunnels */
|
||||
public int getFreeTunnelCount() {
|
||||
if (_inboundExploratory == null)
|
||||
return 0;
|
||||
else
|
||||
return _inboundExploratory.size();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user