Changeset 30fefa4 for apps


Ignore:
Timestamp:
Aug 13, 2018 5:38:57 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
c455f15b
Parents:
e310a6ab
Message:

Console: Format part. tunnel rate
Make table headers consistent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/web/helpers/TunnelRenderer.java

    re310a6ab r30fefa4  
    160160            if (lifetime > 10*60)
    161161                lifetime = 10*60;
    162             int bps = 1024 * count / lifetime;
    163             out.write("<td class=\"cells\" align=\"center\">" + bps + " Bps</td>");
     162            long bps = 1024L * count / lifetime;
     163            out.write("<td class=\"cells\" align=\"center\">" + DataHelper.formatSize2Decimal(bps) + "Bps</td>");
    164164            if (cfg.getSendTo() == null)
    165165                out.write("<td class=\"cells\" align=\"center\">" + _t("Outbound Endpoint") + "</td>");
     
    287287        }
    288288        out.write("<table class=\"tunneldisplay tunnels_client\"><tr><th title=\"" + _t("Inbound or outbound?") + ("\">") + _t("In/Out")
    289                   + "</th><th>" + _t("Expiry") + "</th><th>" + _t("Usage") + "</th><th>" + _t("Gateway") + "</th>");
     289                  + "</th><th>" + _t("Expiration") + "</th><th>" + _t("Usage") + "</th><th>" + _t("Gateway") + "</th>");
    290290        if (maxLength > 3) {
    291291            out.write("<th align=\"center\" colspan=\"" + (maxLength - 2));
Note: See TracChangeset for help on using the changeset viewer.