diff --git a/core/java/src/net/i2p/stat/StatManager.java b/core/java/src/net/i2p/stat/StatManager.java index edf865d9a15c5168a9f258bb6475fb602632df55..ffb7d6c5246ad9e3f70e7eff2d076cc7bf969116 100644 --- a/core/java/src/net/i2p/stat/StatManager.java +++ b/core/java/src/net/i2p/stat/StatManager.java @@ -50,7 +50,7 @@ public class StatManager { "tunnel.acceptLoad,tunnel.buildRequestTime,tunnel.rejectOverloaded,tunnel.rejectTimeout" + "tunnel.buildClientExpire,tunnel.buildClientReject,tunnel.buildClientSuccess," + "tunnel.buildExploratoryExpire,tunnel.buildExploratoryReject,tunnel.buildExploratorySuccess," + - "tunnel.buildRatio.*,tunnel.buildFailure,tunnel.buildSuccess,tunnel.corruptMessage," + + "tunnel.buildRatio.*,tunnel.corruptMessage," + "tunnel.decryptRequestTime,tunnel.fragmentedDropped,tunnel.participatingMessageCount,"+ "tunnel.participatingTunnels,tunnel.testFailedTime,tunnel.testSuccessTime," + "tunnel.participatingBandwidth,udp.sendPacketSize,udp.packetsRetransmitted" ; diff --git a/router/java/src/net/i2p/router/StatisticsManager.java b/router/java/src/net/i2p/router/StatisticsManager.java index 274f4383765c513d04f042388caeb7aab6d42244..4b9f051439eb0924cd55cc0d10d910aecb9ad0ce 100644 --- a/router/java/src/net/i2p/router/StatisticsManager.java +++ b/router/java/src/net/i2p/router/StatisticsManager.java @@ -91,6 +91,8 @@ public class StatisticsManager implements Service { } } + static final boolean CommentOutIn065 = RouterVersion.VERSION.equals("0.6.4"); + /** Retrieve a snapshot of the statistics that should be published */ public Properties publishStatistics() { Properties stats = new Properties(); @@ -139,9 +141,6 @@ public class StatisticsManager implements Service { //includeRate("tunnel.smallFragments", stats, new long[] { 10*60*1000, 3*60*60*1000 }); //includeRate("tunnel.testFailedTime", stats, new long[] { 10*60*1000 }); - includeRate("tunnel.buildFailure", stats, new long[] { 60*60*1000 }); - includeRate("tunnel.buildSuccess", stats, new long[] { 60*60*1000 }); - //includeRate("tunnel.batchDelaySent", stats, new long[] { 10*60*1000, 60*60*1000 }); //includeRate("tunnel.batchMultipleCount", stats, new long[] { 10*60*1000, 60*60*1000 }); //includeRate("tunnel.corruptMessage", stats, new long[] { 60*60*1000l, 3*60*60*1000l }); @@ -187,6 +186,7 @@ public class StatisticsManager implements Service { //includeRate("udp.packetDequeueTime", stats, new long[] { 60*1000 }); //includeRate("udp.packetVerifyTime", stats, new long[] { 60*1000 }); + if(CommentOutIn065) includeRate("tunnel.buildRequestTime", stats, new long[] { 10*60*1000 }); includeRate("tunnel.buildClientExpire", stats, new long[] { 10*60*1000 }); includeRate("tunnel.buildClientReject", stats, new long[] { 10*60*1000 }); @@ -280,7 +280,7 @@ public class StatisticsManager implements Service { private void includeThroughput(Properties stats) { RateStat sendRate = _context.statManager().getRate("bw.sendRate"); if (sendRate != null) { - if (_context.router().getUptime() > 5*60*1000) { + if (CommentOutIn065 && _context.router().getUptime() > 5*60*1000) { Rate r = sendRate.getRate(5*60*1000); if (r != null) stats.setProperty("stat_bandwidthSendBps.5m", num(r.getAverageValue()) + ';' + num(r.getExtremeAverageValue()) + ";0;0;"); @@ -294,7 +294,7 @@ public class StatisticsManager implements Service { RateStat recvRate = _context.statManager().getRate("bw.recvRate"); if (recvRate != null) { - if (_context.router().getUptime() > 5*60*1000) { + if (CommentOutIn065 && _context.router().getUptime() > 5*60*1000) { Rate r = recvRate.getRate(5*60*1000); if (r != null) stats.setProperty("stat_bandwidthReceiveBps.5m", num(r.getAverageValue()) + ';' + num(r.getExtremeAverageValue()) + ";0;0;");