forked from I2P_Developers/i2p.i2p
i2psnark: Debug page tweaks
This commit is contained in:
@ -301,13 +301,15 @@ public class I2PSnarkServlet extends BasicServlet {
|
|||||||
else
|
else
|
||||||
out.write(_contextName);
|
out.write(_contextName);
|
||||||
out.write(" - ");
|
out.write(" - ");
|
||||||
if (isConfigure)
|
if (isConfigure) {
|
||||||
out.write(_t("Configuration"));
|
out.write(_t("Configuration"));
|
||||||
else
|
} else {
|
||||||
out.write(_t("Anonymous BitTorrent Client"));
|
String peerParam = req.getParameter("p");
|
||||||
String peerParam = req.getParameter("p");
|
if ("2".equals(peerParam))
|
||||||
if ("2".equals(peerParam))
|
out.write("Debug Mode");
|
||||||
out.write(" | Debug Mode");
|
else
|
||||||
|
out.write(_t("Anonymous BitTorrent Client"));
|
||||||
|
}
|
||||||
out.write("</title>\n");
|
out.write("</title>\n");
|
||||||
|
|
||||||
// we want it to go to the base URI so we don't refresh with some funky action= value
|
// we want it to go to the base URI so we don't refresh with some funky action= value
|
||||||
@ -1942,10 +1944,10 @@ public class I2PSnarkServlet extends BasicServlet {
|
|||||||
String client;
|
String client;
|
||||||
if ("AwMD".equals(ch))
|
if ("AwMD".equals(ch))
|
||||||
client = _t("I2PSnark");
|
client = _t("I2PSnark");
|
||||||
else if ("LUFa".equals(ch))
|
|
||||||
client = "Vuze" + getAzVersion(pid.getID());
|
|
||||||
else if ("LUJJ".equals(ch))
|
else if ("LUJJ".equals(ch))
|
||||||
client = "BiglyBT" + getAzVersion(pid.getID());
|
client = "BiglyBT" + getAzVersion(pid.getID());
|
||||||
|
else if ("LUFa".equals(ch))
|
||||||
|
client = "Vuze" + getAzVersion(pid.getID());
|
||||||
else if ("LVhE".equals(ch))
|
else if ("LVhE".equals(ch))
|
||||||
client = "XD" + getAzVersion(pid.getID());
|
client = "XD" + getAzVersion(pid.getID());
|
||||||
else if ("ZV".equals(ch.substring(2,4)) || "VUZP".equals(ch))
|
else if ("ZV".equals(ch.substring(2,4)) || "VUZP".equals(ch))
|
||||||
@ -1965,8 +1967,11 @@ public class I2PSnarkServlet extends BasicServlet {
|
|||||||
out.write(client + " <tt title=\"");
|
out.write(client + " <tt title=\"");
|
||||||
out.write(_t("Destination (identity) of peer"));
|
out.write(_t("Destination (identity) of peer"));
|
||||||
out.write("\">" + peer.toString().substring(5, 9)+ "</tt>");
|
out.write("\">" + peer.toString().substring(5, 9)+ "</tt>");
|
||||||
if (showDebug)
|
if (showDebug) {
|
||||||
out.write(" inactive " + (peer.getInactiveTime() / 1000) + "s");
|
long t = peer.getInactiveTime();
|
||||||
|
if (t >= 5000)
|
||||||
|
out.write(" inactive " + (t / 1000) + "s");
|
||||||
|
}
|
||||||
out.write("</td>\n\t" +
|
out.write("</td>\n\t" +
|
||||||
"<td class=\"snarkTorrentETA\">" +
|
"<td class=\"snarkTorrentETA\">" +
|
||||||
"</td>\n\t" +
|
"</td>\n\t" +
|
||||||
|
Reference in New Issue
Block a user