From b6017c558a9b0a9996acbea1bab5a39bd770d00d Mon Sep 17 00:00:00 2001 From: jrandom <jrandom> Date: Wed, 29 Sep 2004 22:54:38 +0000 Subject: [PATCH] * updated stats: - sendsPerFailure: how many partial sends we make when they all fail - timeoutCongestionInbound: describes how much faster than our average speed we were receiving data when each partial send timed out (in Bps) - timeoutCongestionMessage: our send processing time when each partial send timed out (in ms) - timeoutCongestionTunnel: our tunnel test time when each partial send timed out (in ms) - participatingMessagesProcessedActive: # of messages more than the (most recent) average that a tunnel we were participating in transmitted (for tunnels with more than the average) * updated to use Writer for rendering the console, so we can do partial writes (and hopefully help debug some kooky threading bugs on kaffe) --- router/java/src/net/i2p/router/PeerManagerFacade.java | 4 ++-- .../src/net/i2p/router/transport/CommSystemFacadeImpl.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/router/java/src/net/i2p/router/PeerManagerFacade.java b/router/java/src/net/i2p/router/PeerManagerFacade.java index ea9d202ed1..c1863c63c0 100644 --- a/router/java/src/net/i2p/router/PeerManagerFacade.java +++ b/router/java/src/net/i2p/router/PeerManagerFacade.java @@ -8,7 +8,7 @@ package net.i2p.router; * */ -import java.io.OutputStream; +import java.io.Writer; import java.util.List; /** @@ -31,6 +31,6 @@ class DummyPeerManagerFacade implements PeerManagerFacade { public void shutdown() {} public void startup() {} public void restart() {} - public void renderStatusHTML(OutputStream out) { } + public void renderStatusHTML(Writer out) { } public List selectPeers(PeerSelectionCriteria criteria) { return null; } } diff --git a/router/java/src/net/i2p/router/transport/CommSystemFacadeImpl.java b/router/java/src/net/i2p/router/transport/CommSystemFacadeImpl.java index 51a5bb989e..f06e2cf377 100644 --- a/router/java/src/net/i2p/router/transport/CommSystemFacadeImpl.java +++ b/router/java/src/net/i2p/router/transport/CommSystemFacadeImpl.java @@ -9,7 +9,7 @@ package net.i2p.router.transport; */ import java.io.IOException; -import java.io.OutputStream; +import java.io.Writer; import java.util.HashSet; import java.util.List; import java.util.Properties; @@ -66,7 +66,7 @@ public class CommSystemFacadeImpl extends CommSystemFacade { return _manager.getMostRecentErrorMessages(); } - public void renderStatusHTML(OutputStream out) throws IOException { + public void renderStatusHTML(Writer out) throws IOException { _manager.renderStatusHTML(out); } -- GitLab