Changeset 4b75be8


Ignore:
Timestamp:
Aug 13, 2009 3:35:37 PM (11 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
5c6d757
Parents:
6515e6e
Message:

flags for leases

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/networkdb/kademlia/KademliaNetworkDatabaseFacade.java

    r6515e6e r4b75be8  
    971971            long exp = ls.getEarliestLeaseDate()-now;
    972972            if (exp > 0)
    973                 buf.append("Earliest expiration date in: <i>").append(DataHelper.formatDuration(exp)).append("</i><br />\n");
     973                buf.append("Expires in ").append(DataHelper.formatDuration(exp)).append("<br />\n");
    974974            else
    975                 buf.append("Earliest expiration date was: <i>").append(DataHelper.formatDuration(0-exp)).append(" ago</i><br />\n");
     975                buf.append("Expired ").append(DataHelper.formatDuration(0-exp)).append(" ago<br />\n");
    976976            for (int i = 0; i < ls.getLeaseCount(); i++) {
    977                 buf.append("Lease ").append(i).append(": gateway <i>");
    978                 buf.append(ls.getLease(i).getGateway().toBase64().substring(0,6));
    979                 buf.append("</i> tunnelId <i>").append(ls.getLease(i).getTunnelId().getTunnelId()).append("</i><br />\n");
     977                buf.append("Lease ").append(i + 1).append(": Gateway ");
     978                buf.append(_context.commSystem().renderPeerHTML(ls.getLease(i).getGateway()));
     979                buf.append(" Tunnel ").append(ls.getLease(i).getTunnelId().getTunnelId()).append("<br />\n");
    980980            }
    981981            buf.append("<hr />\n");
Note: See TracChangeset for help on using the changeset viewer.