forked from I2P_Developers/i2p.i2p
Give the stats page some consideration.
This commit is contained in:
@ -22,7 +22,7 @@ public class OldConsoleHelper extends HelperBase {
|
|||||||
return baos.toString();
|
return baos.toString();
|
||||||
}
|
}
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
return "<b>Error rending the console</b>";
|
return "<b>Error displaying the console.</b>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ public class OldConsoleHelper extends HelperBase {
|
|||||||
return baos.toString();
|
return baos.toString();
|
||||||
}
|
}
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
return "<b>Error rending the console</b>";
|
return "<b>Error displaying the console.</b>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,6 @@
|
|||||||
<div class="main" id="main">
|
<div class="main" id="main">
|
||||||
<jsp:getProperty name="oldhelper" property="stats" />
|
<jsp:getProperty name="oldhelper" property="stats" />
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -621,7 +621,7 @@ form {}
|
|||||||
-moz-border-radius: 4px;
|
-moz-border-radius: 4px;
|
||||||
-khtml-border-radius: 4px;
|
-khtml-border-radius: 4px;
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
-moz-box-shadow: inset 0px 0px 0px 1px #9f9;
|
-moz-box-shadow: inset 0px 0px 1px 0px #002;
|
||||||
overflow-x: scroll;
|
overflow-x: scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -607,8 +607,7 @@ public class JobQueue {
|
|||||||
out.flush();
|
out.flush();
|
||||||
|
|
||||||
StringBuilder buf = new StringBuilder(32*1024);
|
StringBuilder buf = new StringBuilder(32*1024);
|
||||||
buf.append("<h2>JobQueue</h2>");
|
buf.append("<b><div class=\"joblog\"><h3>I2P JobQueue</h3># runners: ").append(numRunners).append(" [states=");
|
||||||
buf.append("<b><div class=\"joblog\"># runners: ").append(numRunners).append(" [states=");
|
|
||||||
if (states != null)
|
if (states != null)
|
||||||
for (int i = 0; i < states.length; i++)
|
for (int i = 0; i < states.length; i++)
|
||||||
buf.append(states[i]).append(" ");
|
buf.append(states[i]).append(" ");
|
||||||
|
@ -18,7 +18,7 @@ public class RouterVersion {
|
|||||||
/** deprecated */
|
/** deprecated */
|
||||||
public final static String ID = "Monotone";
|
public final static String ID = "Monotone";
|
||||||
public final static String VERSION = CoreVersion.VERSION;
|
public final static String VERSION = CoreVersion.VERSION;
|
||||||
public final static long BUILD = 30;
|
public final static long BUILD = 31;
|
||||||
/** for example "-test" */
|
/** for example "-test" */
|
||||||
public final static String EXTRA = "-rc";
|
public final static String EXTRA = "-rc";
|
||||||
public final static String FULL_VERSION = VERSION + "-" + BUILD + EXTRA;
|
public final static String FULL_VERSION = VERSION + "-" + BUILD + EXTRA;
|
||||||
|
@ -29,7 +29,7 @@ public class StatsGenerator {
|
|||||||
|
|
||||||
public void generateStatsPage(Writer out) throws IOException {
|
public void generateStatsPage(Writer out) throws IOException {
|
||||||
StringBuilder buf = new StringBuilder(16*1024);
|
StringBuilder buf = new StringBuilder(16*1024);
|
||||||
buf.append("<form action=\"/oldstats.jsp\">");
|
buf.append("<div class=\"joblog\"><form action=\"/oldstats.jsp\">");
|
||||||
buf.append("<select name=\"go\" onChange='location.href=this.value'>");
|
buf.append("<select name=\"go\" onChange='location.href=this.value'>");
|
||||||
out.write(buf.toString());
|
out.write(buf.toString());
|
||||||
buf.setLength(0);
|
buf.setLength(0);
|
||||||
@ -66,11 +66,11 @@ public class StatsGenerator {
|
|||||||
for (Iterator iter = groups.keySet().iterator(); iter.hasNext(); ) {
|
for (Iterator iter = groups.keySet().iterator(); iter.hasNext(); ) {
|
||||||
String group = (String)iter.next();
|
String group = (String)iter.next();
|
||||||
Set stats = (Set)groups.get(group);
|
Set stats = (Set)groups.get(group);
|
||||||
buf.append("<h2><a name=\"");
|
buf.append("<h3><a name=\"");
|
||||||
buf.append(group);
|
buf.append(group);
|
||||||
buf.append("\">");
|
buf.append("\">");
|
||||||
buf.append(group);
|
buf.append(group);
|
||||||
buf.append("</a></h2>");
|
buf.append("</a></h3>");
|
||||||
buf.append("<ul>");
|
buf.append("<ul>");
|
||||||
out.write(buf.toString());
|
out.write(buf.toString());
|
||||||
buf.setLength(0);
|
buf.setLength(0);
|
||||||
|
Reference in New Issue
Block a user