From c75ff538a361dab61126413c8423a4b3b48f802c Mon Sep 17 00:00:00 2001
From: zzz NTCP connections: ").append(peers.size());
buf.append(" limit: ").append(getMaxConnections());
buf.append(" timeout: ").append(DataHelper.formatDuration(_pumper.getIdleTimeout()));
buf.append("
\n");
@@ -700,7 +698,6 @@ public class NTCPTransport extends TransportImpl {
buf.append("").append(outQueue).append(" message");
if (outQueue > 1)
buf.append("s");
- writingPeers++;
}
buf.append("
").append(con.getConsecutiveBacklog() > 0 ? "true" : "false");
long readTime = con.getReadTime();
@@ -708,7 +705,6 @@ public class NTCPTransport extends TransportImpl {
buf.append("
No");
} else {
buf.append("
\n");
out.write(buf.toString());
@@ -726,9 +722,7 @@ public class NTCPTransport extends TransportImpl {
buf.append("\n");
}
- buf.append("\n");
- buf.append("Peers currently reading I2NP messages: ").append(readingPeers).append("For ").append(DataHelper.formatDuration(readTime));
- readingPeers++;
}
buf.append("
\n");
- buf.append("Peers currently writing I2NP messages: ").append(writingPeers).append("
\n");
+ buf.append("
UDP connections: ").append(peers.size());
buf.append(" limit: ").append(getMaxConnections());
buf.append(" timeout: ").append(DataHelper.formatDuration(_expireTimeout));
buf.append("
\n");
@@ -1984,8 +1984,7 @@ public class UDPTransport extends TransportImpl implements TimedWeightedPriority
buf.append(sendTotal).append("
\n");
long bytesTransmitted = _context.bandwidthLimiter().getTotalAllocatedOutboundBytes();
// NPE here early
double averagePacketSize = _context.statManager().getRate("udp.sendPacketSize").getLifetimeAverageValue();
@@ -1994,12 +1993,10 @@ public class UDPTransport extends TransportImpl implements TimedWeightedPriority
double nondupSent = ((double)bytesTransmitted - ((double)resentTotal)*averagePacketSize);
double bwResent = (nondupSent <= 0 ? 0d : ((((double)resentTotal)*averagePacketSize) / nondupSent));
buf.append("Percentage of bytes retransmitted (lifetime): ").append(formatPct(bwResent));
- buf.append(" (includes retransmission required by packet loss)
\n");
- buf.append("\n");
+ buf.append(" (includes retransmission required by packet loss)
" +
+ "peer: the remote peer
\n" +
+ "dir: v means they offer to introduce us, ^ means we offer to introduce them
\n" +
"idle: the idle time is how long since a packet has been received or sent
\n" +
"in/out: the rates show a smoothed inbound and outbound transfer rate (KBytes per second)
\n" +
"up: the uptime is how long ago this session was established
\n" +
@@ -2034,7 +2032,7 @@ public class UDPTransport extends TransportImpl implements TimedWeightedPriority
"recv: the number of packets received from the peer
\n" +
"resent: the number of packets retransmitted to the peer
\n" +
"dupRecv: the number of duplicate packets received from the peer" +
- "