forked from I2P_Developers/i2p.i2p
Console: Cleanups when no leases/tunnels
This commit is contained in:
@@ -278,8 +278,8 @@ class NetDbRenderer {
|
||||
buf.append("</table>\n");
|
||||
|
||||
if (leases.isEmpty()) {
|
||||
if (!debug)
|
||||
buf.append("<div id=\"noleasesets\"><i>").append(_t("No Leasesets currently active.")).append("</i></div>");
|
||||
//if (!debug)
|
||||
// buf.append("<div id=\"noleasesets\"><i>").append(_t("No Leasesets currently active.")).append("</i></div>");
|
||||
} else {
|
||||
if (debug) {
|
||||
// Find the center of the RAP leasesets
|
||||
|
||||
@@ -352,7 +352,7 @@ class TunnelRenderer {
|
||||
}
|
||||
}
|
||||
if (live <= 0)
|
||||
out.write("<div class=\"statusnotes\"><center><b>" + _t("No tunnels; waiting for the grace period to end.") + "</b></center></div>\n");
|
||||
out.write("<div class=\"statusnotes\"><center><b>" + _t("none") + "</b></center></div>\n");
|
||||
out.write("<div class=\"statusnotes\"><center><b>" + _t("Lifetime bandwidth usage") + ": " +
|
||||
DataHelper.formatSize2Decimal(processedIn*1024) + "B " + _t("in") + ", " +
|
||||
DataHelper.formatSize2Decimal(processedOut*1024) + "B " + _t("out") + "</b></center></div>");
|
||||
|
||||
Reference in New Issue
Block a user