summary bar spacing cleanup
This commit is contained in:
@ -4,6 +4,7 @@ import java.io.File;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.Writer;
|
import java.io.Writer;
|
||||||
|
|
||||||
|
import net.i2p.data.DataHelper;
|
||||||
import net.i2p.router.RouterContext;
|
import net.i2p.router.RouterContext;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -261,7 +262,7 @@ public class SummaryBarRenderer {
|
|||||||
.append(_("Active"))
|
.append(_("Active"))
|
||||||
.append(":</b></td><td align=\"right\">")
|
.append(":</b></td><td align=\"right\">")
|
||||||
.append(_helper.getActivePeers())
|
.append(_helper.getActivePeers())
|
||||||
.append(" / ")
|
.append(" / ")
|
||||||
.append(_helper.getActiveProfiles())
|
.append(_helper.getActiveProfiles())
|
||||||
.append("</td></tr>\n" +
|
.append("</td></tr>\n" +
|
||||||
|
|
||||||
@ -344,12 +345,16 @@ public class SummaryBarRenderer {
|
|||||||
.append("</a></h3><hr>" +
|
.append("</a></h3><hr>" +
|
||||||
"<table>\n" +
|
"<table>\n" +
|
||||||
|
|
||||||
"<tr><td align=\"left\"><b>1s:</b></td><td align=\"right\">")
|
"<tr><td align=\"left\"><b>")
|
||||||
|
.append(_("1 sec")) // formatDuration2() would say 1000 ms
|
||||||
|
.append(":</b></td><td align=\"right\">")
|
||||||
.append(_helper.getSecondKBps())
|
.append(_helper.getSecondKBps())
|
||||||
.append("Bps</td></tr>\n");
|
.append("Bps</td></tr>\n");
|
||||||
|
|
||||||
if (_context.router().getUptime() > 6*60*1000) {
|
if (_context.router().getUptime() > 6*60*1000) {
|
||||||
buf.append("<tr><td align=\"left\"><b>5m:</b></td><td align=\"right\">")
|
buf.append("<tr><td align=\"left\"><b>")
|
||||||
|
.append(DataHelper.formatDuration2(5 * 60 * 1000)) // 5 min
|
||||||
|
.append(":</b></td><td align=\"right\">")
|
||||||
.append(_helper.getFiveMinuteKBps())
|
.append(_helper.getFiveMinuteKBps())
|
||||||
.append("Bps</td></tr>\n");
|
.append("Bps</td></tr>\n");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user