* Console:
- Remove limiter status from peers.jsp - Fix UPnP status header
This commit is contained in:
@ -25,7 +25,8 @@ public class PeerHelper extends HelperBase {
|
||||
public String getPeerSummary() {
|
||||
try {
|
||||
_context.commSystem().renderStatusHTML(_out, _urlBase, _sortFlags);
|
||||
_context.bandwidthLimiter().renderStatusHTML(_out);
|
||||
// boring and not worth translating
|
||||
//_context.bandwidthLimiter().renderStatusHTML(_out);
|
||||
} catch (IOException ioe) {
|
||||
ioe.printStackTrace();
|
||||
}
|
||||
|
13
history.txt
13
history.txt
@ -1,3 +1,16 @@
|
||||
2009-10-28 zzz
|
||||
* Console:
|
||||
- Rewrite TrustedUpdate version comparator, use for netdb version table
|
||||
so 0.7.10 will be sorted correctly
|
||||
- Reduce netdb.jsp memory usage
|
||||
- More tagging fixups
|
||||
- configclients.jsp fixup for "Web console"
|
||||
- Remove limiter status from peers.jsp
|
||||
- Fix UPnP status header
|
||||
* NetDb:
|
||||
- Generate new RI immediately at startup
|
||||
- Try again to not publish RI until we have been up a few minutes
|
||||
|
||||
2009-10-26 zzz
|
||||
* Console:
|
||||
- Add parameterized tag
|
||||
|
@ -18,7 +18,7 @@ public class RouterVersion {
|
||||
/** deprecated */
|
||||
public final static String ID = "Monotone";
|
||||
public final static String VERSION = CoreVersion.VERSION;
|
||||
public final static long BUILD = 7;
|
||||
public final static long BUILD = 8;
|
||||
/** for example "-test" */
|
||||
public final static String EXTRA = "";
|
||||
public final static String FULL_VERSION = VERSION + "-" + BUILD + EXTRA;
|
||||
|
@ -618,7 +618,9 @@ public class FIFOBandwidthLimiter {
|
||||
}
|
||||
}
|
||||
|
||||
/** @deprecated not worth translating */
|
||||
public void renderStatusHTML(Writer out) throws IOException {
|
||||
/*******
|
||||
long now = now();
|
||||
StringBuilder buf = new StringBuilder(4096);
|
||||
buf.append("<h3><b id=\"bwlim\">Limiter Status:</b></h3>").append(getStatus().toString()).append("\n");
|
||||
@ -648,6 +650,7 @@ public class FIFOBandwidthLimiter {
|
||||
buf.append("</ol></li></ul><hr>\n");
|
||||
out.write(buf.toString());
|
||||
out.flush();
|
||||
******/
|
||||
}
|
||||
|
||||
private static long __requestId = 0;
|
||||
|
@ -454,7 +454,7 @@ public class UPnP extends ControlPoint implements DeviceChangeListener, EventLis
|
||||
/** warning - slow */
|
||||
public String renderStatusHTML() {
|
||||
final StringBuilder sb = new StringBuilder();
|
||||
sb.append("<a name=\"upnp\"></a><b>UPnP Status:</b><br>");
|
||||
sb.append("<h3><a name=\"upnp\"></a>UPnP Status</h3>");
|
||||
|
||||
if(isDisabled) {
|
||||
sb.append("UPnP has been disabled; Do you have more than one UPnP Internet Gateway Device on your LAN ?");
|
||||
|
@ -156,7 +156,7 @@ public class UPnPManager {
|
||||
|
||||
public String renderStatusHTML() {
|
||||
if (!_isRunning)
|
||||
return "<a name=\"upnp\"></a><b>UPnP is not enabled</b>\n";
|
||||
return "<h3><a name=\"upnp\"></a>UPnP is not enabled</h3>\n";
|
||||
return _upnp.renderStatusHTML();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user