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

Skip to content
Snippets Groups Projects
Commit 7986f564 authored by zzz's avatar zzz
Browse files

truncate long dest names

parent b5a17637
No related branches found
No related tags found
No related merge requests found
...@@ -355,7 +355,11 @@ public class SummaryHelper extends HelperBase { ...@@ -355,7 +355,11 @@ public class SummaryHelper extends HelperBase {
buf.append("<b>*</b> "); buf.append("<b>*</b> ");
buf.append("<a href=\"tunnels.jsp#").append(client.calculateHash().toBase64().substring(0,4)); buf.append("<a href=\"tunnels.jsp#").append(client.calculateHash().toBase64().substring(0,4));
buf.append("\" target=\"_top\" title=\"Show tunnels\">"); buf.append("\" target=\"_top\" title=\"Show tunnels\">");
buf.append(name).append("</a><br />\n"); if (name.length() < 16)
buf.append(name);
else
buf.append(name.substring(0,15)).append("&hellip;");
buf.append("</a><br />\n");
LeaseSet ls = _context.netDb().lookupLeaseSetLocally(client.calculateHash()); LeaseSet ls = _context.netDb().lookupLeaseSetLocally(client.calculateHash());
if (ls != null) { if (ls != null) {
long timeToExpire = ls.getEarliestLeaseDate() - _context.clock().now(); long timeToExpire = ls.getEarliestLeaseDate() - _context.clock().now();
......
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