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

Skip to content
Snippets Groups Projects
Commit 15565ca0 authored by zzz's avatar zzz
Browse files

more hellips

parent f188e02a
No related branches found
No related tags found
No related merge requests found
...@@ -401,7 +401,7 @@ public class I2PSnarkServlet extends HttpServlet { ...@@ -401,7 +401,7 @@ public class I2PSnarkServlet extends HttpServlet {
if (i > 0) if (i > 0)
filename = filename.substring(0, i); filename = filename.substring(0, i);
if (filename.length() > MAX_DISPLAYED_FILENAME_LENGTH) if (filename.length() > MAX_DISPLAYED_FILENAME_LENGTH)
filename = filename.substring(0, MAX_DISPLAYED_FILENAME_LENGTH) + "..."; filename = filename.substring(0, MAX_DISPLAYED_FILENAME_LENGTH) + "…";
long total = snark.meta.getTotalLength(); long total = snark.meta.getTotalLength();
// Early typecast, avoid possibly overflowing a temp integer // Early typecast, avoid possibly overflowing a temp integer
long remaining = (long) snark.storage.needed() * (long) snark.meta.getPieceLength(0); long remaining = (long) snark.storage.needed() * (long) snark.meta.getPieceLength(0);
...@@ -453,7 +453,7 @@ public class I2PSnarkServlet extends HttpServlet { ...@@ -453,7 +453,7 @@ public class I2PSnarkServlet extends HttpServlet {
statusString = "<a title=\"" + err + "\">TrackerErr (" + curPeers + "/" + knownPeers + " peers)"; statusString = "<a title=\"" + err + "\">TrackerErr (" + curPeers + "/" + knownPeers + " peers)";
else { else {
if (err.length() > MAX_DISPLAYED_ERROR_LENGTH) if (err.length() > MAX_DISPLAYED_ERROR_LENGTH)
err = err.substring(0, MAX_DISPLAYED_ERROR_LENGTH) + "..."; err = err.substring(0, MAX_DISPLAYED_ERROR_LENGTH) + "&hellip;";
statusString = "TrackerErr<br />(" + err + ")"; statusString = "TrackerErr<br />(" + err + ")";
} }
} else if (remaining <= 0) { } else if (remaining <= 0) {
......
...@@ -71,7 +71,7 @@ public class PersistentKeyRing extends KeyRing { ...@@ -71,7 +71,7 @@ public class PersistentKeyRing extends KeyRing {
for (Entry<Hash, SessionKey> e : entrySet()) { for (Entry<Hash, SessionKey> e : entrySet()) {
buf.append("\n<tr><td>"); buf.append("\n<tr><td>");
Hash h = e.getKey(); Hash h = e.getKey();
buf.append(h.toBase64().substring(0, 6)).append("..."); buf.append(h.toBase64().substring(0, 6)).append("&hellip;");
buf.append("<td>"); buf.append("<td>");
LeaseSet ls = _ctx.netDb().lookupLeaseSetLocally(h); LeaseSet ls = _ctx.netDb().lookupLeaseSetLocally(h);
if (ls != null) { if (ls != null) {
...@@ -81,13 +81,13 @@ public class PersistentKeyRing extends KeyRing { ...@@ -81,13 +81,13 @@ public class PersistentKeyRing extends KeyRing {
if (in != null && in.getDestinationNickname() != null) if (in != null && in.getDestinationNickname() != null)
buf.append(in.getDestinationNickname()); buf.append(in.getDestinationNickname());
else else
buf.append(dest.toBase64().substring(0, 6)).append("..."); buf.append(dest.toBase64().substring(0, 6)).append("&hellip;");
} else { } else {
String host = _ctx.namingService().reverseLookup(dest); String host = _ctx.namingService().reverseLookup(dest);
if (host != null) if (host != null)
buf.append(host); buf.append(host);
else else
buf.append(dest.toBase64().substring(0, 6)).append("..."); buf.append(dest.toBase64().substring(0, 6)).append("&hellip;");
} }
} }
buf.append("<td>"); buf.append("<td>");
......
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