client/server icon selection, history for triple prop, -11

This commit is contained in:
zzz
2009-08-11 16:22:43 +00:00
parent 631a367b1c
commit b10b0e8f57
3 changed files with 46 additions and 4 deletions

View File

@ -13,6 +13,7 @@ import java.util.Locale;
import net.i2p.data.DataHelper;
import net.i2p.data.Destination;
import net.i2p.data.Hash;
import net.i2p.data.LeaseSet;
import net.i2p.data.RouterAddress;
import net.i2p.router.CommSystemFacade;
@ -346,23 +347,32 @@ public class SummaryHelper extends HelperBase {
for (Iterator iter = clients.iterator(); iter.hasNext(); ) {
Destination client = (Destination)iter.next();
String name = getName(client);
Hash h = client.calculateHash();
buf.append("<tr><td align=\"right\"><b><img src=\"/themes/console/images/server.png\" alt=\"Server\" title=\"Server/client\"></td>");
buf.append("<td align=\"left\"><a href=\"tunnels.jsp#").append(client.calculateHash().toBase64().substring(0,4));
buf.append("<tr><td align=\"right\"><b><img src=\"/themes/console/images/");
if (_context.clientManager().shouldPublishLeaseSet(h))
buf.append("server.png\" alt=\"Server\" title=\"Server\" />");
else
buf.append("client.png\" alt=\"Client\" title=\"Client\" />");
buf.append("</td><td align=\"left\"><a href=\"tunnels.jsp#").append(h.toBase64().substring(0,4));
buf.append("\" target=\"_top\" title=\"Show tunnels\">");
if (name.length() < 16)
buf.append(name);
else
buf.append(name.substring(0,15)).append("&hellip;");
buf.append("</a></td><td align=\right\"><img src=\"/themes/console/images/local_up.png\" alt=\"status\" title=\"status\"></td></tr>\n");
LeaseSet ls = _context.netDb().lookupLeaseSetLocally(client.calculateHash());
LeaseSet ls = _context.netDb().lookupLeaseSetLocally(h);
if (ls != null) {
long timeToExpire = ls.getEarliestLeaseDate() - _context.clock().now();
if (timeToExpire < 0) {
// red or yellow light
buf.append("<tr><td>&nbsp;</td><td align=\"left\"><i>expired ").append(DataHelper.formatDuration(0-timeToExpire));
buf.append(" ago</i></td></tr>\n");
} else {
// green light
}
} else {
// yellow light
buf.append("<tr><td>&nbsp;</td><td align=\"left\"><i>No leases</i></td></tr>\n");
}
}

View File

@ -1,3 +1,35 @@
2009-08-11 zzz
* Android:
- Merge in the branch
- Build instructions in the android/ dir
- Rename HMac to I2PHMac to avoid android lib conflicts
- Configurable number of PRNG buffers in AsyncFortunaStandalone
(router.prng.buffers=16) to control memory use - these
are 256KB each.
- Configurable size of the DecayingBloomFilters
(router.decayingBloomFilterM=23) to control memory use - there
are 4 pairs of these (8 total), each 2**(M-3) bytes,
or 8MB total for M=23.
- There's at least two unsolved fatal problems:
1) Most of the routerinfo signature verifications fail,
including our own
2) It randomly dies after a while
* Console:
- Rename the shitlist and the blocklist
- Try to reduce servlet problems on iframe
- Select server or client icon for local dests
* EepHead: New
* Move StatsGenerator from router to routerconsole
* Move the unused AdminManager from router to the apps directory
* NetDb stats: Hide part. tunnel total events, effective next release
* Router: Comment out dead oldconsole code
* Updater:
- Add new unsigned update option, triggered by
last-modified date, using the new EepHead.
Buttons still are not hidden after download complete.
- Make the .sud updater use the temp dir when proxied
- Several cleanups
2009-08-11 dr|z3d
* Extensive sidepanel overhaul
- Ensure all sidepanel headings link to pertinent pages

View File

@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 10;
public final static long BUILD = 11;
/** for example "-test" */
public final static String EXTRA = "";
public final static String FULL_VERSION = VERSION + "-" + BUILD + EXTRA;