I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 30fefa44 authored by zzz's avatar zzz
Browse files

Console: Format part. tunnel rate

Make table headers consistent
parent e310a6ab
No related branches found
No related tags found
No related merge requests found
...@@ -159,8 +159,8 @@ class TunnelRenderer { ...@@ -159,8 +159,8 @@ class TunnelRenderer {
lifetime = 1; lifetime = 1;
if (lifetime > 10*60) if (lifetime > 10*60)
lifetime = 10*60; lifetime = 10*60;
int bps = 1024 * count / lifetime; long bps = 1024L * count / lifetime;
out.write("<td class=\"cells\" align=\"center\">" + bps + " Bps</td>"); out.write("<td class=\"cells\" align=\"center\">" + DataHelper.formatSize2Decimal(bps) + "Bps</td>");
if (cfg.getSendTo() == null) if (cfg.getSendTo() == null)
out.write("<td class=\"cells\" align=\"center\">" + _t("Outbound Endpoint") + "</td>"); out.write("<td class=\"cells\" align=\"center\">" + _t("Outbound Endpoint") + "</td>");
else if (cfg.getReceiveFrom() == null) else if (cfg.getReceiveFrom() == null)
...@@ -286,7 +286,7 @@ class TunnelRenderer { ...@@ -286,7 +286,7 @@ class TunnelRenderer {
maxLength = length; maxLength = length;
} }
out.write("<table class=\"tunneldisplay tunnels_client\"><tr><th title=\"" + _t("Inbound or outbound?") + ("\">") + _t("In/Out") out.write("<table class=\"tunneldisplay tunnels_client\"><tr><th title=\"" + _t("Inbound or outbound?") + ("\">") + _t("In/Out")
+ "</th><th>" + _t("Expiry") + "</th><th>" + _t("Usage") + "</th><th>" + _t("Gateway") + "</th>"); + "</th><th>" + _t("Expiration") + "</th><th>" + _t("Usage") + "</th><th>" + _t("Gateway") + "</th>");
if (maxLength > 3) { if (maxLength > 3) {
out.write("<th align=\"center\" colspan=\"" + (maxLength - 2)); out.write("<th align=\"center\" colspan=\"" + (maxLength - 2));
out.write("\">" + _t("Participants") + "</th>"); out.write("\">" + _t("Participants") + "</th>");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment