mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-22 19:43:11 +00:00
Console: Show offline expiration on LS debug page
This commit is contained in:
1 parent
a21a64e0c6
commit
057eca56d5
2 files changed
+17
-3
No files matched your search
@@ -597,10 +597,15 @@ class NetDbRenderer {
|
||||
if (type != DatabaseEntry.KEY_TYPE_LEASESET) {
|
||||
LeaseSet2 ls2 = (LeaseSet2) ls;
|
||||
buf.append(" <b>Unpublished? </b>").append(ls2.isUnpublished());
|
||||
boolean isOff = ls2.isOffline();
|
||||
buf.append(" <b>Offline signed? </b>").append(isOff);
|
||||
if (isOff)
|
||||
if (ls2.isOffline()) {
|
||||
buf.append(" <b>Offline signed: </b>");
|
||||
exp = ls2.getTransientExpiration() - now;
|
||||
if (exp > 0)
|
||||
buf.append(_t("Expires in {0}", DataHelper.formatDuration2(exp)));
|
||||
else
|
||||
buf.append(_t("Expired {0} ago", DataHelper.formatDuration2(0-exp)));
|
||||
buf.append(" <b>Type: </b>").append(ls2.getTransientSigningKey().getType());
|
||||
}
|
||||
}
|
||||
buf.append("</td></tr>\n<tr><td colspan=\"2\">");
|
||||
//buf.append(dest.toBase32()).append("<br>");
|
||||
|
||||
Reference in new issue
Block a user