From 9fd5ba7b2d2b4a1aecda1862648e2c590b614f74 Mon Sep 17 00:00:00 2001 From: zzz Date: Mon, 16 Jul 2007 21:15:51 +0000 Subject: [PATCH] 2007-07-16 zzz * i2psnark: Add tooltip info for choked/uninterested --- .../org/klomp/snark/web/I2PSnarkServlet.java | 28 +++++++++++++------ history.txt | 5 +++- .../src/net/i2p/router/RouterVersion.java | 4 +-- 3 files changed, 26 insertions(+), 11 deletions(-) diff --git a/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java b/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java index 53b1abc27b..fa942d1f84 100644 --- a/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java +++ b/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java @@ -547,20 +547,32 @@ public class I2PSnarkServlet extends HttpServlet { out.write("\n\t"); out.write(""); if (remaining > 0) { - if (peer.isInteresting() && !peer.isChoked()) + if (peer.isInteresting() && !peer.isChoked()) { out.write(""); - else - out.write(""); - out.write("" + formatSize(peer.getDownloadRate()) + "ps"); + out.write("" + formatSize(peer.getDownloadRate()) + "ps"); + } else { + out.write(""); + else + out.write("Choked\">"); + out.write(formatSize(peer.getDownloadRate()) + "ps"); + } } out.write("\n\t"); out.write(""); if (pct != 100.0) { - if (peer.isInterested() && !peer.isChoking()) + if (peer.isInterested() && !peer.isChoking()) { out.write(""); - else - out.write(""); - out.write("" + formatSize(peer.getUploadRate()) + "ps"); + out.write("" + formatSize(peer.getUploadRate()) + "ps"); + } else { + out.write(""); + else + out.write("Choking\">"); + out.write(formatSize(peer.getUploadRate()) + "ps"); + } } out.write("\n\t"); out.write(""); diff --git a/history.txt b/history.txt index 28d2ba13ba..294e546a88 100644 --- a/history.txt +++ b/history.txt @@ -1,4 +1,7 @@ -$Id: history.txt,v 1.577 2007-07-15 13:34:33 zzz Exp $ +$Id: history.txt,v 1.578 2007-07-16 15:47:57 zzz Exp $ + +2007-07-16 zzz + * i2psnark: Add tooltip info for choked/uninterested 2007-07-16 zzz * Make selection of graphed data configurable via configstats.jsp, diff --git a/router/java/src/net/i2p/router/RouterVersion.java b/router/java/src/net/i2p/router/RouterVersion.java index f5894ca3de..0242b68571 100644 --- a/router/java/src/net/i2p/router/RouterVersion.java +++ b/router/java/src/net/i2p/router/RouterVersion.java @@ -15,9 +15,9 @@ import net.i2p.CoreVersion; * */ public class RouterVersion { - public final static String ID = "$Revision: 1.512 $ $Date: 2007-07-15 13:34:34 $"; + public final static String ID = "$Revision: 1.513 $ $Date: 2007-07-16 15:47:59 $"; public final static String VERSION = "0.6.1.28"; - public final static long BUILD = 15; + public final static long BUILD = 16; public static void main(String args[]) { System.out.println("I2P Router version: " + VERSION + "-" + BUILD); System.out.println("Router ID: " + RouterVersion.ID);